procmail recipe

George Georgalis george at galis.org
Mon Mar 7 08:12:21 PST 2005


On Sun, Mar 06, 2005 at 05:03:28PM -0500, Justin C. Sherrill wrote:
>> I've tried working out a procmail recipe, but this one is tough. I think
>> it requires a separate program to do the second check but I'd like to
>> figure a way to do it on a (procmail) command line. Either way someone
>> what to give a shot?
>>
>> Plan: deliver list postings from specific addresses to a special
>> maildir, and also deliver any list postings that are replies to those
>> address to the special maildir.
>
>This is a shortened version of what I had working for my first draft of
>the mail archive for the lists, before I switched to pulling the entries
>from the news server.

Interesting method, but not exactly for what I'm trying to do. I also
use TO_ for regular list sorting. But now I want to "deliver list
postings from specific addresses", ie userIdontlike at xxxxxxxxxxxxxxx, to
a special maildir, separate from the regular list postings, easy enough:

:0
* ^Sender.*crater.dragonfly.com
* ^From.*userIdontlike at xxxxxxxxxxxxxxx
dragonfly-special/

The hard part is filtering all the replies (ie all the messages that
have a mesgid in their References: header that matches a mesgid of a
mail filtered to dragonfly-special/. :-\

// George


-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george at xxxxxxxxx





More information about the Users mailing list