procmail
[Top] [All Lists]

Re: Using procmail as a pre-mailing-list filter

2000-09-01 21:08:12
I've got a strange need, but I think procmail can do it.

Yup!

What I need to do is from my sendmail aliases, pipe 
emails sent to a particular alias into a procmail filter -
which will check and see if the subject starts with a Re:.
If the subject starts with a Re: (e.g., is a reply), I want
to send it back to the sender with a small message.  Otherwise,
I want to just pipe it on into the mailing list software..

Take a look at

   http://www.python.org/pipermail/mailman-users/1999-February/000617.html

for procmail wrappers with Mailman.

You'd want to insert your recipe just before that last recipe
is called (the one that invokes 'wrapper').  Something like

   :0 
   * ^Subject: Re:
   | ACTION

I'm being purposely vague in my ACTION line above and not providing the
necessary commands because I'm not sure what you want to do, exactly.
Do you want to append something to their message?  Do you just want to
reply, not copy their message, and have a note to them in the message
body?  Is your note to them supposed to be a MIME attachment instead?
(In my opinion, the middle option is easiest and best).

Chris

_______________________________________________
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>