procmail
[Top] [All Lists]

Re: Delivered-To: [adding it]

1999-06-18 06:58:50
Liviu Daia had said,

D2> Actually, I said filtering by envelope recipients is what you were
D2> asking for, not that you _should_ do it.  My point was you _can't_ do
D2> it.

James McGill responded,

[If Mr. McGill is in Scotland or Ireland, I should use G> rather than M> to
 cite his words, acknowledged.]

M> You certainly can setup your mta to give envelope rcpt's and senders
M> to the procmail commandline.

Dr. Daia has already followed up with exactly my reaction,

D> Not really that easy if you don't have root privileges. :-)

Absolutely.  On this list and list-managers I find that people with root
privileges have the dangedest time remembering that not everybody does.

When Era suggested this to Harry Putnam,

E>     :0
E>     | formail -I "X-Delivered-Via: foo(_at_)bar(_dot_)com" \
E>       | $SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com

E> ... where foo(_at_)bar(_dot_)com is the address whose .procmailrc contains 
this.

Harry replied,

P> This is working and putting a nice little header in their that even I
P> can find with my limited .procmail experience... whoopppee

Just a thought: instead of needing to hard-code the appropriate replacement
for foo(_at_)bar(_dot_)com on every site where Harry wants to use this recipe, 
wouldn't
$LOGNAME(_at_)$HOST work just as well and be more flexible?  What if Harry wants
to recommend the code to someone else in a comparable position?  (OK, so that
person still has to edit the destination address.)

<Prev in Thread] Current Thread [Next in Thread>