procmail
[Top] [All Lists]

Re: RECIPE: strip/remove ads from hotmail/yahoo originated messages

2002-03-27 15:44:30
On Wed, Mar 27, 2002 at 11:19:40AM -0800, Professional Software Engineering 
wrote:
This method will also strip reply-chained ads, so "> > > Do You Yahoo!?"
is killed as well.

FTR, you're going to run into trouble unless you ensure that you skip this 
on cryptographically signed messages.

yeah, i should check for the right content types or perhaps a test against
"^-----BEGIN PGP" or similar. i have to do some research. is there a
canonical way to do this? this applies to any recipe that modifies the
body, so i'm sure someone has a line for this.

I tackled this same thing several months ago (for a mailing list 
preprocessor), but I did it in a more centralized fashion, expressly 
avoiding the need for external scripting:

i saw this and it is good for the non-quoted, truncate-only case. removing
quoted ads was one of my requirements. also, i only put the sed parts in
files so they'd be clean. you can bring it in and set SHELLMETAS and it's
not going to be significantly more expensive.

aaron
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail