> On Tue, Oct 26, 2004 at 04:00:21PM -0400, Keith Hackworth wrote: >> Is there a Mail::SpamAssassin::PerMsgStatus method that will return just >> the body of the message (no attachments/multiparts)? I need a >> "non-pristine" message to speed things up in my plugins. I know there's >> get_message(), but that seems to return the whole message, with the >> attachments. > > It's hard to give you an answer when you don't explain what you're trying > to get ... do you want the decoded text-only body? rendered text-only > body? something completely different? > > I'm guess you want PMS::get_decoded_stripped_body_text_array(). > > -- > Randomly Generated Tagline: > Why buy shampoo when real poo is still free? >
Thanks, Theo - this may work for html only messages, which might be good enough for what I'm trying to do. I need just the HTML version of the email. No attachments, just the HTML body. If the 1st part if multipart, I need the 1st html part. Here's what I'm trying to do: I'm trying to find invalid html tags and if there's too many, bump the sa score up a bit. I noticed a bunch of messages come in with obfu like this "v-wo<notatag>rd" in the body of the html message, which shows up as "v-word" on a normal webmail or outlook email client. I want to see how many "notatag"s we're getting in a message. I got the code on how to do it and it works fine, but it's just WAY too slow using PMS::get_message(). The PMS::get_decoded_stripped_body_text_array() will work for html only messages, which is more than likely the only way this type of obfu will work. I don't know of any way a text message can take advantage of the email clients like this. Thanks, Keith