Alexander E. Patrakov wrote:
My server, ums.usu.ru, runs Courier MTA, and I am generally happy with
it. However, today I found a little problem.
My ~/.mailfilter contains:
if (/^List-Id:.*linux-hotplug-devel.lists.sourceforge.net*/)
to "$DEFAULT/.Hotplug/"
if (/^List-Id:.*linux-fbdev-devel.lists.sourceforge.net*/)
to "$DEFAULT/.fbdev/"
if (/^List-Id:.*diy-linux-dev.diy-linux.org*/)
to "$DEFAULT/.DIY-Linux/"
Today I received a "corrupted" message from the fbdev mailing list
(forwarded as attachment). It ended up in my inbox, and that's not what
I want.
How should I modify ~/.mailfilter so that even corrupted messages that
come from a mailing list end up in the corresponding folder, not in inbox?
By default Courier only pattern matches against the headers, to get
corrupted messages to match you'd need to search both headers and bodies
by adding the :w line:
if (/^List-Id:.*linux-fbdev-devel.lists.sourceforge.net*/:w)
of course, this is going to dramatically increase the amount of
resources maildrop uses and the amount of time it takes to filter mail.
I'd recommend instead turning off corrupt message reformatting, either
globally (I find it causes my end users more trouble than it saves them,
SA and ClamAV pull out the really dangerous stuff) or for messages
coming from the sf.net mailing list server.
Jay
--
Jay Lee
Network / Systems Administrator
Information Technology Dept.
Philadelphia Biblical University
--
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users