If you are using procmail, put: :0: * ^content-type:[ ]+text/html spam
in your ~/.procmailrc to file html formatted e-mail in your spam folder. You can probably do better with: :0: * ^content-type:[ ]+text/(plain|html); * ^content-transfer-encoding:[ ]+base64 spam which will do so if it is html formatted, and base64 encoded. If both of those fail, you can search the body for both, too: ws='[ ]*($[ ]+)*' dq='"' eol='$' # :0: * $ ^content-type:${ws}text/(plain|html);${ws}charset=${dq}.*${dq}${eol}content-transfer-encoding:${ws}base64 spam where the spaces in the ws variable are a tab character, hex 09, followed by a space character, hex 20, and allow multiple line regex searches in procmail. John Alvin Oga writes: > > On 13 Aug 2003, Ron Johnson wrote: > > > On Wed, 2003-08-13 at 10:56, Richard Lyons wrote: > > > On Wednesday 13 August 2003 7:46 pm, Jeff Elkins wrote: > > > > Most of the spam I receive is HTML format. Is there a fairly painless way > > > > of sending anything formatted HTML to my trash folder? > > sendmail has an option ... if the mail is html formated, the mail is > bounced > - lots of ways to get rid of spam ... > - 2 minute answer or 2 days of working on it ?? > - nothing is 100% accurate as a spam filter > - the ideal spam solution depends on your criteria and setup > > and for any "good people" you want to receive mail from, even if > its html'ized, you add them to your access list to allow them in > ( add um to your "whitelist" ) > -- John Conover, [EMAIL PROTECTED], http://www.rahul.net/~conover -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]