Re: Auto-Whitelisting

Marc Herbert <[email protected]> Wed, 16 Feb 2005 14:51:50 +0100 (CET)
Newsgroups gmane.mail.spam.active-spam-killer.general
Message-ID <Pine.LNX.4.58.0502161442480.993@fcat>
On Tue, 15 Feb 2005, Derek Pizzagoni wrote:

> Well, kind of thinking out loud here...

OK, let's call this a "brainstorming" then :-)

> If your e-mail client creates a copy of every outgoing e-mail message
> (for example, in a 'sent' folder) in readable format, you could easily
> parse this for recipient addresses, compare it to the active whitelist,
> and add any missing entries.
>

> To: [email protected]
>
> and I have others that are in this syntax:
>
> To: Recipient <[email protected]>
>
> You'd have to get rid of the brackets, maybe make everything lower (or
> upper) case for comparisons, and get rid of any superfluous text.

This address syntax seems weird but it is actually well standardized
in some RFC (and I don't think any email software has its own
odd/non-RFC way to write these addresses). So I am 99% sure that the
python mail library (that ASK uses) is able to parse all of them.
Actually the python mail library is probably even able to slurp a
whole folder (provided it is in some standard format, say mbox for
instance) and extract all the To: fields. So a small script
that computes
	sent-mail folder -> recipients addresses
could probably hold in only a couple of lines of Python.

Even better, this couple of lines could be incorporated into ASK so it
could "watch" a given sent-mail folder at a regular pace and...
automagically add all newly found addresses!

Cheers,

Marc.


-- 
So einfach wie möglich. Aber nicht einfacher -- Albert Einstein




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click