procmail
[Top] [All Lists]

Re: Mail forwarding question.

1998-01-03 04:51:28
On Fri, 2 Jan 1998 20:03:44 -0800 (PST), david hunt <dh(_at_)west(_dot_)net>
wrote:
     * ^Subject:.*\<humor\>

Nitpicking: Because of the odd way Procmail's variant of \< works 
[it always matches one non-word character, not just a "zero-width
assertion" like most regex implementations that have this construct],
this will fail when there is no whitespace after the colon. This is
rather pathological but still perfectly compliant with RFC822. For
this reason, you should use (.*\<)? instead of just .*\< after the
colon that terminates a header field name.

/* era */

(When, not if, Microsoft launches another mail handling program which
doesn't comply to RFCs, not to mention even Microsoft's own specs,
you'll owe me a virtual beer if it doesn't add whitespace after header
colons :-/

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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