| 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
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
procmail mailing list