Re: [Evolution] using spamassassin with evolution



Not quite what you want...

RUn spamassassin with the -a option.  This looks for a whitelist in
.spamassassin.

Now goto to contacts, hight all (CTRLA) save as vcard, "list.vcd"

here is a sample

BEGIN:VCARD
X-EVOLUTION-FILE-AS:List, Evolution
FN:Evolution List
N:List;Evolution
EMAIL;INTERNET:evolution ximian com
X-EVOLUTION-LAST-USE:2002-09-29
X-EVOLUTION-USE-SCORE:27.233089
UID:pas-id-3BAA2B8800000002
END:VCARD

You want the emails....  A quick perl script from dejanews:

getemail.pl:

#!/usr/bin/perl
print "Subject:  Testing\nTo:evolution ximian com\n\n";

while (<>) {
  if (/[a-z0-9_]+([\\-\\.][a-z0-9_]+)* [a-z0-9_]+([\\-\\.][a-z0-9_]+)+/) {
    print "$&\n";
  }
}

so I run getemail.pl list.vcf > myemails.

I then run 

spamassassin -l filelog --add-to-whitelist < /tmp/myemails 

filelog is the debug output.


Note:  If I did not put the Subject and To: line in, I got
X-Mail-Format-Warning: Bad RFC2822 header formatting in evolution ximian com

Which seems a bug in the script or man page.

You can check you white list with the check_whitelist script (in the
tools package)

perl /usr/doc/spamassassin-tools-2.41/tools/check_whitelist


And you will see your emails as

  -100.0        (-100/1)  --  evolution ximian com
Where people addd via the -a option are:
    -5.0          (-5/1)  --  fejj ximian com


Now this

1)  May break.  I just hacked it.
2)  Will not automatically update, but with the -a option, it might do
that anyway.
3)  Will put bad email that you forget about in there.  Like a friend
gets there email used by spammers, and its in the white_list.











On Mon, 2002-09-30 at 18:27, Steven Johnson wrote:
Related question: Can you configure it to automatically accept any email
that is from an email address in Contacts? (That, it would seem, would
eliminate the lion's share of false positives.)


_______________________________________________
evolution maillist  -  evolution ximian com
http://lists.ximian.com/mailman/listinfo/evolution
-- 
Zot O'Connor

http://www.ZotConsulting.com
http://www.WhiteKnightHackers.com
-- 
Zot O'Connor <zot zotconsulting com>
White Knight Hackers, Inc.





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