Hi all

Does anybody know if its possible in the IMAP Sensor to search for multiple keywords? I use the IMAP Sensor for checking if our backup was successful. The mails go into a specific mailbox and if any email has the subject ERROR the sensor turns red. Now there is a possibility that the email could have the keywords WARNING in the subject as well. Do I have to create an additional sensor, or is it possible to search for keyword WARNING "or" ERROR?

regards Thomas


Article Comments

You could use the regular expression check option for the various mail fields in the IMAP sensor. The following example will search the subject for warning or error: (warning|error)/i


Aug, 2015 - Permalink

Ah I see, ok regular expression it is then. But I had to use \b(error|warning)\b

regards Thomas


Aug, 2015 - Permalink

Okay then, riddle solved :)


Aug, 2015 - Permalink

I hoped to use it without regular expressions...I hate them. Before I can understand regular expressions, I have to understand regular expressions....


Aug, 2015 - Permalink

There are two kinds of users here:

  • Users who know regex but don't want to use it
  • Users who don't know regex and don't need it

:)


Aug, 2015 - Permalink