I've used this statement for yrs in ~/procmailrc
:0
* ^To: user(_at_)host(_dot_)some(_dot_)com
|$SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com
But don't really know the details of what it really does.
I've run into a problem where I've set a filter on my Mail server
(newsguy.com) to delete messages not addressed to me.
On a remote machine... a cron job when it completes, sends mail to
simply `USERNAME'... so USERNAME on that machine is sent mail
From: root(_at_)host(_dot_)some(_dot_)com
To: USER(_at_)host(_dot_)some(_dot_)com
The filter above sends the message on to reader(_at_)newsguy(_dot_)com
I'm only guessing here, as to how the newsguy filtering works:
OK, but my filter at newsguy is deleting these messages. Apparently
they are still addresses to user(_at_)host(_dot_)some(_dot_)com so they are
seen as
not being to my newsguy address.
But I assumed the
|$SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com
Rewrote the To: line so it would be reader(_at_)newsguy(_dot_)com
What are the details of what the clause:
|$SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com
actually does... what rewriting if any takes place?
ps - I know I can reset my filter to include
user(_at_)host(_dot_)some(_dot_)com and
I also know how to get formail to re-write the message headers just
about any way imaginable.... so Yeah, I can get it straightened out..
But still want to know the nitty gritty details of what
|$SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com
does.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail