2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: maildrop standalone -...
FromSent OnAttachments
Jim RamsayMar 3, 2004 8:53 am 
Jim RamsayMar 8, 2004 11:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Re: maildrop standalone - why no dot-courier support?Actions...
From:Jim Ramsay (i.@jimramsay.com)
Date:Mar 8, 2004 11:48:45 am
List:net.sourceforge.lists.courier-maildrop

I'll answer myself since I found/made a solution!

Jim Ramsay wrote:

Is there another product out there somewhere (or patch for current maildrop) that can 'filter' based on multiple levels of extension addresses like specified above?

I just wrote a wrapper to do this using something like dot-qmail files; you can find out more about it at http://pyldaw.sf.net

Or is there a way to do this already using maildrop or procmail?

If you prefer one big mamoth filter file, you can put this in to filter based on extension:

--------------------------------------------------------------------- import EXTENSION

if( $EXTENSION =~ /^tmda-/ ) { EXTENSION = substr( $EXTENSION, 5, 1000 ) to "| /path/to/tmda-filter" } if( $EXTENSION =~ /^tmda$/ ) { EXTENSION = "" to "| /path/to/tmda-filter" }

In the above excerpt, user@example.com is properly protected by maildrop. It assumes that the MTA (in my case, postfix), puts the extension in the environment's "EXTENSION" variable.