On Thu, Feb 11, 2021 at 11:09:06PM -0700, Bob Proulx wrote:
> Bryan L. Gay wrote:
> > I'm seeing some mailing list messages with to:
> > postfix-us...@cloud9.net in the header. I had to update my filters to
> > get them sorted into my postfix mailing list folder.
> 
> If one is filtering mail selecting for mail through a mailing list
> then one should not use the To: or Cc: for that filtering.  The best
> and expected header to use is the List-Id: header.  That's the
> standard mailing list header.  See RFC2929.
> 
>     RFC 2929 https://tools.ietf.org/html/rfc2919
> 
> All mail through this mailing list sets this header.
> 
>     List-Id: Postfix users <postfix-users@postfix.org>
> 
Yes, that's all very well, but not all mailing lists are so well
behaved so a general mailing list filter can't rely on this. One would
have to base the filter on a combination of things.

My filter currently relies on a single filtering string so it can't do
this but, on thinking about it, it wouldn't be that difficult to come
up with a 'double match' approach.  However, whether it's worth the
effort I'm not sure, it's "good enough" at the moment.

-- 
Chris Green

Reply via email to