"Jesse D. Guardiani" <[EMAIL PROTECTED]> writes:

> What I'm curious about is multi-line email headers.
>
> Are they legal?

Yes, long headers can optionally be "folded" at 78 chars for better
readability.  See RFC 2822 for more info.

> List-Id: blahblahblah blah
>          <somemaillinglistemail.myemailserver.com>
>
> And if they _are_ legal, what is the best way to match against
> multi-line headers with the incoming filter 'headers' directive?

Here is an example that I use:

headers '^References:(.|\n)*<[EMAIL PROTECTED]>' ok

The (.|\n) is necessary so that newlines will be traversed.

See http://www.python.org/doc/current/lib/module-re.html for more on
Python re module syntax.

Of course, if you're just trying to identify mail from a particular
list, you'd be better off using 'from' or 'from-file' to match the
envelope sender address of the list messages.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to