Re: [courier-users] Filtering corrupted messages

This is a discussion on Re: [courier-users] Filtering corrupted messages within the Courier-Imap forums, part of the Mail Servers and Related category; Alexander E. Patrakov wrote: > My server, ums.usu.ru, runs Courier MTA, and I am generally happy with > ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-05-2005
Jay Lee
 
Posts: n/a
Default Re: [courier-users] Filtering corrupted messages

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
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0