Re: sorting outgoing mail
> Procmail is a delivery agent; it only handles incoming mail.
> Automatically sorting outgoing mail (i.e. putting mail into different
> folders as it is sent) requires send-hooks.
While it's true that procmail can act as a delivery agent, it can also
filter any mail that you feed into it. If you sent $sendmail to a
program that first filters the message, then injects the message to
SMTP, you can external outbound message filtering.
#!/bin/sh
##
## Use this as $sendmail in mutt
##
procmail -p -f me@xxxxxxxxxxx -m $HOME/.procmailrc.outgoing
Make sure that .procmailrc.outgoing **always** acts on a message copy
using rules beginning with ":0 c". Then make sure that the last rule
in .procmailrc.outgoing, the one that catches all messages coming into
the filter, is like this:
:0
| /usr/lib/sendmail -oi -oem -t
I haven't tested this approach at all, but it seems like it should work.
:)
--
-D. dgc@xxxxxxxxxxxx NSIT University of Chicago
"Polka music needs to prevail." John Ziobrowski, Polka America Corporation