procmail
[Top] [All Lists]

Re: man pages missing something

2002-10-31 04:27:41
Ruud H.G. van Tol wrote:
Hatto von Hatzfeld skribis:


by "* ^From +\/[^ ]+ " (the
space after the last + is important) one can easily extract the From_
address and put it into MATCH.


1. Why would you want the MATCH to end in a space? (AFAIK, \/ is greedy-to-the-right)

2. Using ^^From in stead of ^From is more accurate here.

3. E-mail-addresses are allowed to have embedded whitespace.


From rfc822:  3.1.4. STRUCTURED FIELD BODIES
Note: For purposes of display, and when passing such structured information to other systems, such as mail protocol services, there must be NO linear-white-space between <word>s that are separated by period (".") or at-sign ("@") and exactly one SPACE between all other <word>s. Also, headers should be in a folded form.
--------------
I think the discrepency here is that an email address, in my parallel universe, matches with the above statement.

However many email addresses, using the reference of "^From .*" results in white space being used to seperate the first and last names of the person sending the email.

The difference between "From " and "From: " makes a nasty difference for email coming from mailing lists and email coming from real people. If I get this right so far, for most mailing lists, "From " matches the mailing list and "From: " matches the person (Ruud H.G. van Tol)

--
Facts do not cease to exist because they are ignored.
                -- Aldous Huxley


_______________________________________________
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>