On Wed, Jul 28, 2004 at 11:12:00PM -0600, Google Kreme wrote:
On Wed, 28 Jul 2004 20:17:39 -0600, Justin Gombos
the From: field, isn't it possible for this field to have multiple
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
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
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.
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/
procmail mailing list Procmail homepage: http://www.procmail.org/