On Wed, Jul 28, 2004 at 11:12:00PM -0600, Google Kreme wrote:
On Wed, 28 Jul 2004 20:17:39 -0600, Justin Gombos
<mindfuq(_at_)zianet(_dot_)com> wrote:
the From: field, isn't it possible for this field to have multiple
addresses?
Multiple addresses in the From?
Wanna think about that?
What's to think about? RFC2822 section 3.6.2 clearly states:
The from field consists of the field name "From" and a
comma-separated list of one or more mailbox specifications. If the
from field contains more than one mailbox specification in the
mailbox-list, then the sender field, containing the field name
"Sender" and a single mailbox specification, MUST appear in the
message.
So in order to protect against confusion with multi-address From:
fields, you have to check for (and prefer) the Sender: field (if it's
applicable).
So unless you can predict the order in which atoms of your regexp will
match header lines, you can't do that in a single regexp. A single
regexp that did a multi-line match of the whole header, detecting the
full originator would be prohibitively ugly if it's possible at all.
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/
____________________________________________________________
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