|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
spam learningI use evolution as my mail client. Evolution supports spamassassin and
in the past I let evolution use spamassassin to filter incoming mail. Recently, I switched to spam filtering using procmail. The relevant section of my my .procmailrc file is: :0fw: spamc.lock * < 256000 | spamc # Mails with a score of 15 or higher are almost certainly spam (with 0.05% # false positives according to rules/STATISTICS.txt). Let's put them in a # different mbox. (This one is optional.) :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Inbox.Spam # All mail tagged as spam (eg. with a score higher than the set threshold) # is moved to "probably-spam". :0: * ^X-Spam-Status: Yes Likely.Spam Evolution then simply reads the various mboxes. Here's my question. I tell spamassassin to (re)learn the spam tagged messages using evolution. However, the format of the messages now has the spamc report with the offending message as an attachment. Is spamassassin "smart" enough to recognize the differnece between the two parts of the message? David |
|
|
Re: spam learningDavid Ronis <ronis@...> wrote:
> I use evolution as my mail client. Evolution supports spamassassin and > in the past I let evolution use spamassassin to filter incoming mail. > Recently, I switched to spam filtering using procmail. [...] > Here's my question. I tell spamassassin to (re)learn the spam tagged > messages using evolution. However, the format of the messages now has > the spamc report with the offending message as an attachment. Is > spamassassin "smart" enough to recognize the differnece between the two > parts of the message? http://wiki.apache.org/spamassassin/BayesInSpamAssassin: "It's OK to feed emails with Spamassassin markup into the sa-learn command -- sa-learn will ignore any standard Spamassassin headers, and if the original email has been encapsulated into an attachment it will decapsulate the email. In other words sa-learn will undo any changes which Spamassassin has done before learning the spam/ham character of the email." -- Sahil Tandon <sahil@...> |
|
|
Re: spam learningOn Fri, 2008-07-18 at 18:32 -0400, David Ronis wrote:
> I use evolution as my mail client. Evolution supports spamassassin and > in the past I let evolution use spamassassin to filter incoming mail. > Recently, I switched to spam filtering using procmail. The relevant > section of my my .procmailrc file is: Good move. ;) > :0fw: spamc.lock > * < 256000 > | spamc > > # Mails with a score of 15 or higher are almost certainly spam (with 0.05% > # false positives according to rules/STATISTICS.txt). Let's put them in a > # different mbox. (This one is optional.) > :0: > * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* > Inbox.Spam > > # All mail tagged as spam (eg. with a score higher than the set threshold) > # is moved to "probably-spam". > :0: > * ^X-Spam-Status: Yes > Likely.Spam Rather weird folder name, huh? > Evolution then simply reads the various mboxes. > > Here's my question. I tell spamassassin to (re)learn the spam tagged > messages using evolution. However, the format of the messages now has > the spamc report with the offending message as an attachment. Is > spamassassin "smart" enough to recognize the differnece between the two > parts of the message? As Sahil already answered: Yes, SA will unwrap the original message and strip it's own headers before learning. Since you've just moved from client side filtering, some additional hints: If you don't like the message wrapped as an attachment, the option 'report_safe 0' will prevent this. All reports are in the headers in that case, the message will not be altered otherwise. This pretty much looks like what you are used to -- with the notable exception of additional report headers. Also, learning (Bayes training) now needs to be done server side. The clients "Junk" buttons won't work. guenther -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}} |
|
|
|
| Free Forum Powered by Nabble | Forum Help |