Re: [Evolution] using spamassassin with evolution

Not quite what you want...

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

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

here is a sample

FN:Evolution List
EMAIL;INTERNET:evolution ximian com

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

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 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
Zot O'Connor
Zot O'Connor <zot zotconsulting com>
White Knight Hackers, Inc.

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