procmail
[Top] [All Lists]

Re: copies of messages sent

2001-09-24 07:12:13
Tom Warfield,

| Even though this isn't part of Procmail's functions, if you figure it
| out I would really like to see it.
|
| Personally I wouldn't mind seeing the same functionality in the outbound
| emails.  Actually I am wondering if it is possible to maybe send all
| outbound email through procmail.

Procmail is ready for it: that's why the -m option preserves the rest of its
positional parameters.  The problem is that MTAs don't have a way to run a
message through another program.

Some MUAs do: good old Unix Mail and mailx, Pine, and Mutt for examples all
let the user override the MTA definition.  By setting it to procmail -m
some_rcfile_intended_for_outbound_mail (or to an rcfile with execute
permission that starts with a hash-bang line invoking procmail -m) and
having that rcfile end with

 :0
 ! "$@"

to deliver the processed message to the real MTA, you get all the benefits
of procmail on outgoing mail.

But if the MUA has no hook for overriding the MTA definition, the user can't
do that.


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