On Wed, Jun 12, 2002 at 09:44:42AM -0700, [EMAIL PROTECTED] wrote: | I've been working on some perl scripting that grabs the rules listed | at X-Spam-Status:. I used a simple regex that looks for that line | and the presence of rules:
| I had it mostly done but on actual testing against real mail I think | the newest cvs of spamassassin inserts the header: | X-Spam-Status: | but it now includes newlines, so my homeboy (simple) regex fail now. | Maybe its my mua doing it? Or is it spamassassin? SA will "fold" the header value if it is "too" long. RFC 822 and 2822 allow for "folding" headers by including the rest on a separate line with leading whitespace. | My perl is very weak, so I wondered if someone could coach me a bit | on how to id the presence of `X-Spam-Status:' line including any | newlines that may be involved, and whether there is a space or the | string `none' after `tests='. I think its just a matter of using | perlre that include newlines, but having a problem finding how. Does perl have a MULTILINE mode like python's p-c implementation has? (I'm not a perl person, but recently I did a bunch of regex work in python (and some sed) to clear the trailers and banner ads in email messages) -D -- After you install Microsoft Windows XP, you have the option to create user accounts. If you create user accounts, by default, they will have an account type of administrator with no password. -- bugtraq Jabber ID : [EMAIL PROTECTED] GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
msg06242/pgp00000.pgp
Description: PGP signature