procmail
[Top] [All Lists]

Re: Multiple lists, one mail...

1999-03-23 23:02:19
On Tue, 23 Mar 1999 13:58:25 -0500 (EST), Moe Drippins
<ug(_at_)unixgeek(_dot_)com> wrote:


I subscribe to a few mailing lists which cover the same domain, but
each list's delivery schedule is quite different; some deliver
immediately, others various lag times.  

More often than not, I get N copies of the same mail as the poster
will send to one and CC to the others.   

What I'm looking for is a way to only get unique mails, if it comes
addressed to list1, save it. If it comes addressed to list2, save it
unless it also is addressed to list1. If it comes addressed to list3,
save it unless it also is addressed to list2 or list1.

Is there any non brute-force way to do this?

 Here's a couple of filters I use rather than bitch on mailing
lists about unwanted email followups.

 :0: duplicate.lock
 * ^(Apparently-To|To|Cc):.*.procmail
 * !^X-Loop:.procmail
 duplicate

 :0: duplicate.lock
 * ^(Apparently-To|To|Cc):(_dot_)*spamtools(_at_)abuse\(_dot_)net
 * !^Sender:(_dot_)owner-spamtools(_at_)abuse\(_dot_)net
 duplicate

  This is more powerful than running "formail -D 8192 msgid.cache"
as suggested in the man page.  The standard method accepts
whichever copy of the post comes first.  A direct email to me
usually beat an email that detours via the mailing list.  That
is *NOT* what I want.  I want the list copy so I can keep it in
context with the thread.

  The algorithm is as follows...
  IF an email message has one of my subscribed mailing lists as
     one of it's destinations
     AND
     the unique header is absent that flags email from the list
  THEN
     it's a personal copy emailed directly to me
  END

  My example only shows a two-way choice, i.e. 1 mailing list vs
my personal inbox.  However, you can set up your own hierarchy as
to which of several groups gets a duplicate, and you can select
the pecking order within the groups.

-- 
Walter Dnes <waltdnes(_at_)interlog(_dot_)com> procmail spamfilter
http://www.interlog.com/~waltdnes/spamdunk/spamdunk.htm
Why a fiscal conservative opposes Toronto 2008 OWE-lympics
http://www.interlog.com/~waltdnes/owe-lympics/owe-lympics.htm

<Prev in Thread] Current Thread [Next in Thread>