Re: Blacklist via mail folder
Poohba <poohba <at> blkpoohba.dyndns.org>
2004-11-01 22:45:37 GMT
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> formail -IReply-To: -fzrx To: -s < myspam | grep -i cole