procmail
[Top] [All Lists]

Re: Procmail filter for outgoing mail

1997-06-24 04:52:00
On Tue, 24 Jun 97 I (Chris Bidmead) wrote:
Thanks very much for that swift response, Philip. I've rejigged my
filter so it looks like this:

=====cut here=========

Sorry, I missed the vital first line of my outgoing procmail  
filter, which is the hash-bang bit.  Here's the whole thing again:

=====cut here=========
#! /usr/local/bin/procmail
# This filter is called proctest
SHELL=/bin/sh
# for diagnostics
TMPDIR=/tmp/procmailtest
VERBOSE=yes
LOGFILE=$TMPDIR/procmail.log

:0f
* ^To:.*Mag-Reader
| formail -I "Reply-To: chris-unix(_at_)cbidmead(_dot_)demon(_dot_)co(_dot_)uk" 
-s
{ }

:0
| /Users/bidmead/stopthatmail "$@"

=====cut here=========

I guess stopthatmail might just as well be $SENDMAIL for the  
purposes of this exercise. The point is, that "$@" just isn't  
getting filled with the dummy address when I evoke proctest from the  
command line thus:

csh-prompt> proctest dummy(_at_)ddress(_dot_)to(_dot_)test < TestMailItem

el bid