procmail
[Top] [All Lists]

Re: Procmailers beware: BCC handling

1996-11-18 18:02:40
Rick Troxel <rick(_at_)helix(_dot_)nih(_dot_)gov> writes:
On Fri, 15 Nov 1996, Joe Pruett wrote:

joey> i've also seen sendmail code somewhere that will add a
joey> X-envelope-to header to all locally delivered mail so that you can
joey> look at that via procmail (or other processors).

With sendmail v8, try adding this to the "Format of headers" section of
sendmail.cf:

      H?u?X-Envelope-To: $u

Have you _tried_ this?  If you do, you'll find that the 'u' macro is
only set if there is one and only one envelope recipient.  If there are
more than one, then $u is empty, and the header is left out.  This is
with both sendmail 8.7.6 and 8.8.3.  Note that this is independent of
whether the delivering mailer has the 'm' flag set.

Philip Guenther

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