procmail
[Top] [All Lists]

Re: ^TO_ & ^TO

2001-09-10 23:32:05
CueMan <cueman(_at_)orbital(_dot_)cuenet(_dot_)com> writes:
I also have an interest in extracting the recipient address from
the arriving email headers.

You can't.  Next question?


Does ^TO_ & ^TO contain all the email addresses that might appear
in To:, Cc;, Bcc:, etc.? Or is it able to automagically divine
the ultimate recipient address regardless of were in the headers
it might be not depending on MTA?

No, and no.

If you want the login name of the user that procmail is running as,
use $LOGNAME.

If this is a virtual domain setup such that procmail isn't actually
running as the recipient, then the MTA *MUST* pass the envelope recipient
information to procmail outside of the normal recipient headers, or
you'll silently LOSE and MISROUTE messages.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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