I want to be able to take an email message that may contain MIME and HTML and to strip it down to basically nothing but text. (I know that SpamAssassin already does this in large part so that it can analyze the message properly.) So I'm not actually using SpamAssassin to detect spam. Instead, I just want access to a relatively clean text message to scan for another purpose.
Here is what I have tried, without success: my (@text) = <FH>; my ($st) = new Mail::SpamAssassin(); my ($ma) = Mail::SpamAssassin::NoMailAudit->new(); my ($permsg) = Mail::SpamAssassin::PerMsgStatus->new($ma, @text); This doesn't work because I don't fully understand the relationships here. I know that if I call $st->check() that I will get a PerMsgStatus handle or something similar that I can then use. However, I don't really want to do a check() since that will call code that doesn't need to run (i.e., the spam checking code). I just want access to SpamAssassin's email cleaning code that will make it easy for me to access the text of any arbitrary email message (e.g., a message with MIME parts). ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk