<<< Date Index >>>     <<< Thread Index >>>

Re: Send hook and shell scripts?



* On 2006.04.25, in <20060425152751.GD22798@xxxxxxxxxxxxxxxxxxxx>,
*       "Jason Helfman" <jhelfman@xxxxxxxxxxxxxx> wrote:
> Oh, I was thinking of incoming mail for that issue. Sorry, I misread.

You can use procmail for outgoing, actually.  For example:

$ cat ~/procmailrc.filter
## Apply a filter for messages to Arthur
:0 f
* To: arthur
| /path/to/filter1

## Apply a filter for messages to Beatrice
:0 f
* To: beatrice
| /path/to/filter2

## Whatever else might have happened, force messages into sendmail.
## This is a final disposition for all messages.
:0
| /usr/lib/sendmail -oi -oem


Then in mutt:
        set sendmail="procmail ~/procmailrc.filter"

-- 
 -D.    dgc@xxxxxxxxxxxx        NSIT    University of Chicago