procmail
[Top] [All Lists]

Re: Rejecting multiple names/subjects at once?

1996-06-13 15:22:46
} Too be honest - I doubt killing on specific subjects will be that 
} effective.  These change with every mailing.  

There are strings that I want to use, not necessarily complete
subjects.  Strings lime two dollar signs in a row, the words 'USA
Magazines' and others.

} But the principle should work fine with any specified element, so long as 
} you could get formail to extract it.  For example, something like this:
} 
} FROM=`$FORMAIL -zrx To:| sed -e 's/.*@//'`
} 
} should allow you to test for specific sites (videofantasy, interamp, aol, 
} etc.).

} > Can this recipe be expanded to include the subject and site only
} > information?  Or should something new be created.... maybe perl or
} > something?
} 
} Fairly easily.  But while killing on the site would be effective - IMHO, 

Also, I have no need to bounce these, I just want to send them to the 
bit-bucket.

Basically I think procmail can already do this on a sinle subjedct at
a time basis.  Such as...

:0
* TOme(_at_)mysite(_dot_)net
* ^Subject:.*USA Magazine
/dev/null

What I really want to be able to do is make various recipes look
either at a text file or, as you have done, a directory filled with
files, to see what variable to place in ^Subject: above.

What would be the syntax of a recipe like the following

:0
^ TOme(_at_)mysite(_dot_)net
| look_in_bozo_file_and_if_any_entries_match_then
/dev/null

Can anyone help develop THIS sort of thing?

Thanks

William Pfeiffer
Moderator: rec.radio.broadcasting/AIRWAVES RADIO JOURNAL
wdp(_at_)airwaves(_dot_)com  *  wdp(_at_)wwa(_dot_)com * 
airwaves(_at_)woodtech(_dot_)com
*NEW* Web URL: http://www.airwaves.com/