Chris Berry wrote:
> Ed Blackman wrote:
>> Chris Berry wrote:
>>>Joe Sotham wrote:
>>>>Can someone suggest a filter to delete this stuff.  The alternative is to
>>>>allow the pending queue to do it's work but I like to be hasty.
>>>
>>>Isn't that kind of the whole point of tmda?  I mean if you're going to 
>>>filter the stuff, why bother challenging it?
>> 
>> IMO, challenging an email should be a last resort.  Most spam has a
>> bogus envelope sender, so challenges to spam may cause innocent
>> bystanders to receive challenge replies to messages they never sent.
> 
> I agree for the most part though my solution is a bit different, however 
> the original poster was talking about messages in his pending queue, 
> which means they've already been challenged.

Whoops!  That's what I get for skimming the original message.  Sorry
about that.

In that case, he could try:

$ cd <path to pending dir>
# list Subjects to make sure you're only deleting the messages you want
$ egrep -l "^Subject: <regex>" *.msg | xargs -i sh -c "formail -cXSubject<{}"
# call tmda-pending in batch-delete mode to remove messages
$ egrep -l "^Subject: <regex>" *.msg | xargs tmda-pending -bd

Ed


_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to