procmail
[Top] [All Lists]

Re: Need help with a recipe please.

2003-07-05 10:26:08
At 12:20 2003-07-05 -0400, Steven W. Orr wrote:
I have two mailinglists. Let's call thme A and B. All members of A are
allowed to be subscribed to B. Not all members of B are allowed to be
subscribed to A. Noone is allowed to post to either list unless they are
subscribed to that list.

How does the procmail recipe know if the person is a subscriber of one list or another?

I want people on A to not be allowed to send a single message to both A
and B. I someone sends to both A and B it should hit procmail and
automagically be send only to B.

:0
* ^TO_listA
* ^TO_listB
{
        # somehow, determine whether the poster is subscribed and to which
        # list.

        # determine which of the lists THIS message was being delivered for
        # (assuming that you might receive separate copies, at separate
        # delivery aliases).  Discard the one for the A list.

        # use formail msgidcache to eliminate duplicates which may arrive
        # shortly (if the above logic isn't applicable).

        # Optionally, use sed to manipulate the To:/Cc: headers to strip
        # the A list from the apparent delivery (optional).
}

If the addresses are aliased through the SAME local delivery alias, then only one physical copy of the message should actually be delivered locally.

Personally, I'd be kosher with just bouncing back the message whenever it is crossposted, regardless of who is crossposting it. Correct the problem at it's source, rather than fixing it up behind the scenes.

[If someone on B sends to A and B, that would automatically block the
message to A.]

"lists" sure is a descriptive term of what you're using for a mailing list processor. If it is Smartlist, there's a specific list for Smartlist questions. If if is something else, please define what it is, and how you have procmail hooked into it in the first place.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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