Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
How does kmail use spamassassin headers...exactly?
How exactly does kmail make use of spamassassin headers?
My headers look like the following, but when viewing the message with Kmail and Fancy Headers enabled "Spam Status:" is blank and the "Spamassassin" bar graphic is all grey. I suspect the format of my headers does not fit what Kmail expects; I can change the header report if I knew what Kmail was expecting. Thanks for any help.
X-Spam-Status: Yes
X-Spam-Score: 11.7 (+++++++++++)
X-Spam-Report: Yes, score=11.7 required=5.0 autolearn=no version=3.1.7-deb
* 0.0 DK_POLICY_SIGNSOME Domain Keys: policy says domain signs some mails
* 1.5 SARE_MLB_Stock1 BODY: SARE_MLB_Stock1
* 1.2 SARE_LWSHORTT BODY: SARE_LWSHORTT
* 1.6 SARE_PROLOSTOCK_SYM1 BODY: Last week's hot stock scam
* 1.7 SARE_LWTARGETP BODY: SARE_LWTARGETP
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 3.5 BAYES_99 BODY: Bayesian spam probability is 99 to 100%
* [score: 1.0000]
* 1.9 DNS_FROM_RFC_BOGUSMX RBL: Envelope sender in
* bogusmx.rfc-ignorant.org
* 0.2 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org
* 0.0 UPPERCASE_25_50 message body is 25-50% uppercase
RE: How does kmail use spamassassin headers...exactly?
I believe I found the answer in /etc/kde3/kmail.antispamrc:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
DetectionHeader=X-Spam-Flag
DetectionPattern=yes
DetectionPattern2=
DetectionOnly=0
UseRegExp=0
SupportsBayes=1
SupportsUnsure=0
ScoreName=Spamassassin
ScoreHeader=X-Spam-Status
ScoreType=Adjusted
ScoreValueRegexp=(?:hits|score)=([\d\.-]+)\s
ScoreThresholdRegexp=required=([\d\.-]+)\s
|
So from that I expect that we need to have "X-Spam-Flag: Yes" to detect as spam and X-Spam-Status must have hits=xxx and required=xxx to light up the bar graphic.