Jason R. Mastaler wrote: > "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.
ok > >> 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. Excellent! > > 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. Hmmm. I totally forgot that TMDA has access to envelope sender addresses. Are the envelope sender addresses always the same as the address used for posting? Are there any gotchas for matching against the envelope sender of a mailling list? Thanks Jason! > _____________________________________________ > tmda-users mailing list ([EMAIL PROTECTED]) > http://tmda.net/lists/listinfo/tmda-users -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
