[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Small addition to the spamassassin rules in kmail.antispamrc
From: Daniel Hornung <daniel.hornung () gmx ! de>
Date: 2007-05-26 17:46:21
Message-ID: 200705261946.25098.daniel.hornung () gmx ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hello,
this is my first time writing to this list, I hope I'm right here (I was told
so in #kontact on freenode).
I have a small proposal to add to the the spamassassin parsing done via
$(KDE)/share/config/kmail.antispamrc
The current (3.5 on my Gentoo Linux system) version requires the "score"
and "required" value to be ended with a whitespace. Other common separators,
such as commas, semicolons, etc. lead to unsuccessful parsing of the spam
status in an email's header.
The following patch hopes to correct this behaviour.
Thanks for your comments,
Daniel
--- /usr/kde/3.5/share/config/kmail.antispamrc~ 2007-05-26 18:53:03.000000000
+0200
+++ /usr/kde/3.5/share/config/kmail.antispamrc 2007-05-26 19:00:28.000000000
+0200
@@ -22,8 +22,8 @@
ScoreName=Spamassassin
ScoreHeader=X-Spam-Status
ScoreType=Adjusted
-ScoreValueRegexp=(?:hits|score)=([\d\.-]+)\s
-ScoreThresholdRegexp=required=([\d\.-]+)\s
+ScoreValueRegexp=(?:hits|score)=([\d\.-]+)[^\d\.]
+ScoreThresholdRegexp=required=([\d\.-]+)[^\d\.]
[Spamtool #2]
Ident=bogofilter
[Attachment #5 (application/pgp-signature)]
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic