Re: [Evolution] Spam filter whitelisting (was: I have an idea)



I will repost this.

1)  Open contacts, select all, save as lists.vcf
2) Grab emails into a file, perl example:

        #!/usr/bin/perl
        print "Subject:  emails\nTo:blah blah com\n\n";
        while (<>) {
          #if (/([:alphanumeric:_ -]* [:alphanumeric:_\.-]*\.[:alphanumeric:]+)/) {
          if (/[a-z0-9_]+([\\-\\.][a-z0-9_]+)* [a-z0-9_]+([\\-\\.][a-z0-9_]+)+/) {
            print "$&\n";
          }
        }

The subject/to line is needed by spamassassin, it wants to see an email.

3) Run spamassassin input:
        spamassassin -l filelog -D --add-to-whitelist < /tmp/myemails
The -l is the only way to get debug out.
        elm -f filelog
Checks it.

4) Run spamassassin with the autowhitelist option (-a).

Run the check_list tool to review.
        perl /usr/doc/spamassassin-tools-2.41/tools/check_whitelist
A normal auto whitelist:
    -5.0          (-5/1)  --  fejj ximian com
One that I imported
  -100.0        (-100/1)  --  evolution ximian com



On Thu, 2002-09-26 at 14:19, Kenneth Porter wrote:
On Thu, 2002-09-26 at 06:51, Steve wrote:

So far I do not see how to implement an "any email that comes from
someone on my ADDRESS LIST, is left alone (stop processing)" rule.

How much control do you have over your spam filter? SpamAssassin
provides the ability to white-list to and from addresses in the
user_prefs file, as well as applying an auto-whitelist fudge factor for
frequently-seen addresses.

If you could parse the Evo address book, you could just copy all
addresses found into your spam whitelist. So the problem reduces to how
to extract all email addresses from Evo. Ideally it should be a command
line program that can be run from cron so that your whitelist stays up
to date without your interaction.


_______________________________________________
evolution maillist  -  evolution ximian com
http://lists.ximian.com/mailman/listinfo/evolution
-- 
Zot O'Connor <zot zotconsulting com>
White Knight Hackers, Inc.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]