I'm trying to scan my backup emails to see if they were successful. I have had success using the imap sensor and scanning the subject for certain words. However, when I try to scan the 'body' for certain words, it never finds the words even when they are most certainly contained within the email.
For example: Email subject: Alert Notification Email body contains phrase: Backup Operation Successful
I have the imap sensor set to identify by Subject Field: Alert Notification (which it successfully identifies) and the Set to Alarm If mail body does not contain: Backup Operation Successful
I even have a special error message 'Search text not found' that should appear if the body does not contain the specified text.
When the sensor runs, it fails saying 'Search text not found' but the email DOES have the text 'Backup Operation Successful' in the message.
What can the problem be? I'm using a basic 'String search' and the text is an exact match. I even tried searching the body for 'e' which is obviously in the message, but that still fails.
It seems body search does work for me but subject is fine. Does anyone know what the problem might be?