Small addition to the spamassassin rules in kmail.antispamrc

Daniel Hornung <[email protected]>
Newsgroups gmane.comp.kde.devel.kmail
Message-ID <[email protected]>
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

_______________________________________________
KMail developers mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kmail-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBGWHJtZ+xTcXnVHOgRAmtxAKD0dazW+Q4jPJil1zmT9mlNdgm0aQCbB/c8
zP0M6t6mauCzn1BXx8eU2Rs=
=Z/Go
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.