[ale] odd procmail answer

Nick Lucent nlucent at mindspring.com
Mon May 31 01:20:00 EDT 1999


> Actually, what the above does is it deletes any line which contains
> the case-insensitive pattern "reply-to:", in both the body and the
> headers of the message. 
> 
> Are you trying to delete the entire message, or just the lines which
> contain the offensive aol stuff? Deleting the entire message shouldn't
> be too hard...something like 
> if (grep pattern file); then cat file >>mbox; fi

the whole thing, if it has been aolised then I know its jokes and can be
tossed. Basically im looking for a way to check the body of a message for
some pattern (dont have any aolmail at the moment), and if found then
delete the message, otherwise deliver as normal. does that make more sense
than my original post? =)  I was pretty tired when I got home this
morning. NT wasnt playing well last night =)

Nick

> 
> But I assumed that what you wanted was to only delete the lines. 
> 
> Is there a pattern or regexp that you know will be in any of the
> unwanted lines, but you're reasonably sure will not be in any other
> lines in the body or headers of the message? If so, then you want
> something like I have above. (Replace the "reply-to:" with whatever
> your pattern is, of course) If you don't know of a pattern, then this
> probably won't help you much. 

I know the pattern exists, but dont know what it is at the moment. Im sure
someone will send me some aolmail soon =(

> 
> --joe
> 

We expect them [Salvadoran officials] to work toward the elimination
of human rights.
                -- Vice President Dan Quayle






More information about the Ale mailing list