Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Message filter on body content not working

  • 6 replies
  • 3 have this problem
  • 14 views
  • Last reply by Meaulnes

hello I saw this thread «Message filter on body content not working» dated Jan.2020 that unfortunately didn't get any replies... I have this same problem since a log time and hope, by bumping the question again, to find someone that found a solution. I'm trying to filter all messages containing «operating normally» with the following settings (see screenshot):

> Manage message filters > [√]Manually Run [√]Getting New Mail (Filter before Junk Classification) (o)Match all of the following [Body][contains][operating normally]

Contents of an e-mail that should be caught: | Active Monitor has detected recent changes in the state of your server appliance. | For more details, please see the Active Monitor section of the Server Desktop. | Summary of changes: | * The Server Desktop is operating normally.

Sometime it works, but mostly not... Can anyone help?

Thank you and best regards で⊃ Meaulnes Legler Zurich, Switzerland

hello I saw this thread «Message filter on body content not working» dated Jan.2020 that unfortunately didn't get any replies... I have this same problem since a log time and hope, by bumping the question again, to find someone that found a solution. I'm trying to filter all messages containing «operating normally» with the following settings (see screenshot): > Manage message filters > [√]Manually Run [√]Getting New Mail (Filter before Junk Classification) (o)Match all of the following [Body][contains][operating normally] Contents of an e-mail that should be caught: | Active Monitor has detected recent changes in the state of your server appliance. | For more details, please see the Active Monitor section of the Server Desktop. | Summary of changes: | * The Server Desktop is operating normally. Sometime it works, but mostly not... Can anyone help? Thank you and best regards で⊃ Meaulnes Legler Zurich, Switzerland
Attached screenshots

All Replies (6)

Generally I ignore such topics, simply because they are generally the same thing. Something about a URL embedded in the HTML of the message and I am simply tired of telling people that they can access what they see, but not the source of the HTML.

In this case you have two criteria than must be met for the filter to trigger, the subject must contain your constraint and the body must contain another constraint. Are you sure you do not mean for the constraints to be set to match any of the following, not all of the following?

hey Matt thanks for the prompt reply!

the first part of the reply: I don't get it, the e-mail is plain text, no HTML, CTRL-U for the source shows exactly «operating normally» embedded in the message.

regarding the two filter constraints, they need an AND, not an OR, hence «Match all of the following», not «Match any of the following», let me explain: A daemon on my server called «Active Monitor» checks the server integrity — like running/stalled Postfix or AV-Spam, CPU overload etc — and sends an e-mail if something goes wrong or working well again. The server sends many other messages, like logfiles, accomplished cron jobs etc that are all sorted in different Inbox-subfolders. Hence, all «Active Monitor» messages are placed in its «Active Monitor» subfolder.

I wanted to collect in this subfolder all messages reporting an OK state marked as read and those reporting an error in bold (unread). So I set up two filters, the 2nd one moving the «Active Monitor» message to its subfolder and the 1st (the previous filter) one doing the same thing but marking the message as read. See both screenshots.

I tried to invert the two constraints in the 1st filter, it didn't help. Maybe it would work if I would set up the 1st filter to catch «operating normally» as only constraint, but it won't move it then to the «Active Monitor» subfolder.

Thank you again and best regards で⊃ Meaulnes Legler Zurich, Switzerland

Filters act on messages one at a time, so if your mail meets the constraint for the first filter it encounters it is not present for the second as you have moved it.

My suggestion is you simply add a tag to the messages you want in bold and not move them in that filter, let the second filter do the moving for all of them, and not bother with the marking as read at all. Use the tag to highlight the messages you want to see. Setting a tag of say important will color the email red in the list, or personal will be green, so you will not miss it.

This will also make it very obvious if the filter does not do it's job.

I have seen this happen occasionally. I really do no understand why, but on rare occasions it is like the filters simply do not execute on getting messages and I have to manually execute therm.

> Filters act on messages one at a time, so if your mail meets the constraint for the first filter it encounters it is not present for the second as you have moved it.

yeah, I think that's the snag; my actions define to move the message and then mark it as read and then, as you say, it doesn't find the message to mark as read because it has been moved... (there is a note at the bottom: «See execution order» as hint)

I inverted the two actions and will tell you tomorrow — the «Active Monitor» daemon runs at night — if it helped

best regards で⊃ Meaulnes Legler Zurich, Switzerland

I owe you an update, I tried different filter settings and come to the conclusion that • either the [Body↓][contains↓][string] is limping, sometimes it recognizes the text, sometimes not • or the [Mark As Read↓] doesn't always do its job

At the end, I set up a sole «operating normally - mark as read» filter (see screenshot). It doesn't catch all incoming messages containing the string, some of them are marked as read, other stay unread. At least the [Move Message to↓][Choose Folder...] does work.

Thank you and best regards で⊃ Meaulnes Legler Zurich, Switzerland

Modified by Meaulnes

how do I delete a reply? like this one?

Modified by Meaulnes