In ferreting out spam phrases, bad URL's, and in scanning e-mail in general, I think it'd be convenient if there were a grep-like utility that understood e-mail. Let's call it mail_grep. Mail_grep would be able to scan e-mail (in mbox format at a minium) for occurrences of a given string. To do this, mail_grep would (1) decode attachments, and (as a user-selectable switch) (2) attempt to extract the text from HTML attachments. Mail_grep would match the user-provided pattern against these decoded e-mail messages. Mail_grep would print hits in a grep like fashion, prepending the message number, or alternatively output the entire matching message to stdout. There are a lot of other things that mail_grep could do, but this would seem to be a good first start. I think most of these capabilities could be constructed using the Mail:: module, or by using Spamassassin's API. Unfortunately, I don't have time at the moment to try and build mail_grep, so I'm tossing the idea out here.
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk