On May 29, 2018, at 4:33 PM, Mark Sapiro <m...@msapiro.net> wrote: > > Use header_filter_rules (on the admin Privacy options... -> Spam filters > page. > > A regexp of > > ^subject:\s*(\(no subject\))?\s*$ > > will match messages with an empty Subject: header or literally '(no > subject)', but it's more complicated than that because the message may > have no Subject: header at all. To account for that you need three > rules. The first of these has the regexp above with an action of > discard. The second has the regexp > > ^subject: > > and an action of accept to accept messages with Subject: headers that > didn't match the first rule, and the third has the regexp > > ^.*$ > > and action discard to discard all messages that got past the first two, > i.e. those with no Subject: header at all. > > If you already have header_filter_rules, these three are added after the > others. Otherwise, they are the only rules. > Excellent, thanks. I put them in with 'hold' instead of 'discard' for now just in case I made a mistake. Right now I have a bunch of lines in the Legacy section, is it ok to leave those in place?
--Bryan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org