procmail
[Top] [All Lists]

Re: Blacklist via mail folder

2004-11-01 16:09:04
The address I want is the sender and from I guess.  Which is suggested
to go by?

On Mon, 2004-11-01 at 12:54, Dallman Ross wrote:
On Mon, Nov 01, 2004 at 10:03:52AM -0500, Poohba wrote:
I heard of this but I can't seem to find the email that tells how to do
this.  I want to put emails in a mail folder (file) and use that to
check for unwanted address.

You need to be a little more specific about what addresses you want
to grab from there.  Sender?  Putative From:?  Bogus addresses in
the To: or Cc: lines?  Or do you mean you want to grep all that cruft
for the sender addresses in newcoming mail?  That seems to me bound to
lead to false positives.  E.g., if your friend Moe writes you but he
was Cc'd on spam, then he'd be blocked.

So I assume you mean the senders' addresses, essentially the Envelope-From
addresses that would appear in the initial From_ line.  So why would
you want to save ll the rest of the headers and bodies of these emails?
It seems like a screwy approach to me.

Nevertheless, coding it is easy enough.  Fore example, looking at
my recent cache of last-100 spams, I grep the From_ lines for the
string "cole" (chosen kind of at random) like so:

 formail -IReply-To: -fzrx To: -s < myspam | grep cole

Here's what I got:

  6:53pm [~/Mail] 363[1]> formail -IReply-To: -fzrx To: -s < myspam | grep -i 
cole
 colemanmcPhersonwz(_at_)msn(_dot_)com
 nicole_hargrove_tp(_at_)abm(_dot_)uu(_dot_)se
 
coleen(_dot_)bowers_ln(_at_)0(_dot_)1(_dot_)5(_dot_)2(_dot_)8(_dot_)6(_dot_)9(_dot_)5(_dot_)1(_dot_)4(_dot_)1(_dot_)tpc(_dot_)int


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>