We monitor several backup services which send emails about their status just like described in this article. In order to get an error status as soon as a backup failed, we use regular expressions in the search text field. If the email body does not contain “Failed Backups: 0” (but a number bigger than 0), for example, we want to set the sensor to alarm.
For plain text emails, this works as expected. However, some solutions send HTML emails. The IMAP sensor obviously recognizes these emails but switches into an error status erroneously even if the regex in the search text field does match the "successful backup" condition.
The sensor log shows that the sensor seems to analyze only a part of HTML emails. Is there any solution to this issue?