Mark Sapiro wrote:
I am a Mailman neophyte and need help with filtering posts based on the subject field. We have a few list owners that want 'Out of Office' replies discarded. When using the below syntax in Postorius/Header filter the post is not discarded but ends up in 'Held Messages'. Is there any syntax I am missing or a setting in the lists that needs to be disabled/enabled to get these posts dropped? Any help is much appreciated. The issue may be that in Mailman core's 'builtin' chain, the checking of
On 4/22/19 2:34 PM, Thomas Lehker wrote: header_matches occurs after the check for member moderation so if the member moderation check results in the message being held, the header_matches aren't checked.
There may me a newer thread about this, but I haven't found it.
In my case I would be more interested in holding or discarding mails with subject 'Out of Office' if the mail would otherewise be send the to the list members due to a non-moderated list.
I would emagine that the order of "check for member moderation" and header_matches would not be significant if holding or discarding the mail due to header_matches, am I right? 🤞🏻
If so, I would think that Header "subject:" or "subject" with Pattern "^(?i)(.*)autosvar(.*)" - without the double quotes - and Function "Hold for moderation" or "Discard" should either hold or discard any message with "Autosvar" (danish word for "Out of Office reply") somewhere in the subject, but that doesn't happen. What is the correct syntax?
I know that filtering out Out of Office replies is just as hard as spam filtering, since it varies, but at least there is some kind of consistency in the wording, so I would give it a try.
*) In a prevous mail I was told that ^ would tell Mailman that it is a regex.
-- Henrik Rasmussen her@adm.ku.dk Copenhagen, Denmark