Bug 896 - Gnus MUA matching is wrong.
Summary: Gnus MUA matching is wrong.
Status: RESOLVED DUPLICATE of bug 753
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (show other bugs)
Version: 2.41
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
: 970 (view as bug list)
Depends on:
Reported: 2002-09-15 06:57 UTC by Arkadiusz Miskiewicz
Modified: 2002-09-20 23:50 UTC (History)
1 user (show)

Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Arkadiusz Miskiewicz 2002-09-15 06:57:04 UTC
My gnus produces such User-Agent header:

User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90

while spamassassin test wants:
20_anti_ratware.cf:header USER_AGENT_GNUS_UA       User-Agent =~ /^Gnus
v\d(?:\.\d+){1,2}\/X?Emacs \d+\.\d+/

As you can see it's really different.
Also there is gnus version named Oort used.

What I found from my mailing list archives:
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Bryce Canyon)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.90
User-Agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Copyleft)
User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux)
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Informed Management (RC1))
User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.7
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp (Windows))
Comment 1 Daniel Quinlan 2002-09-19 21:01:13 UTC
*** Bug 970 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Quinlan 2002-09-19 21:02:20 UTC
Note, rule was removed due to low performance, but it may be worth recovering.


Removed USER_AGENT_GNUS_UA from HEAD cvs.

hit frequencies:

  0.000    0.000    0.000    0.00    0.00    0.00  USER_AGENT_GNUS_UA

test code from all files in rules dir:

header USER_AGENT_GNUS_UA       User-Agent =~ /^Gnus v\d(?:\.\d+){1,2}\/X?Emacs
describe USER_AGENT_GNUS_UA     User-Agent header indicates a non-spam MUA (Gnus)
tflags USER_AGENT_GNUS_UA    nice

If you want to re-add this test to SpamAssassin, please follow
up this bug entry, improving the code until the S/O ratio
goes above 0.7 (or below 0.3 for nice tests).

(automated submission)
Comment 3 Malte S. Stretz 2002-09-21 07:50:42 UTC
I fixed this rule in CVS but it went away with the last merge. The problem was 
that the pattern for User-Agent and X-Mailer were swapped. I'll fix it again. 

*** This bug has been marked as a duplicate of 753 ***