Gnus development mailing list
 help / color / mirror / Atom feed
From: Tom Rauchenwald <sehnsucht.nach.unendlichkeit@quantentunnel.de>
To: ding@gnus.org
Subject: spam.el + sa-learn
Date: Mon, 17 Jan 2011 20:50:57 +0100	[thread overview]
Message-ID: <87ei8b71i6.fsf@sec.modprobe.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

Hi,

i recently noticed that my spamassassin bayes database didn't get
updated properly. sa-learn didn't pick up messages I fed it (via the
spam exit processors).

The following patch fixes it for me, but I'm not sure if it is the right
thing to do. For me it looks like sa-learn doesn't accept "From " alone
as message seperator anymore, so i added "nobody" and the current time
string. I'm on Debian Sid FWIW (SpamAssassin version 3.3.1).

Could someone more knowing about the issue comment on this?

Thanks,
-tom

-- 
You should never underestimate the predictability of stupidity. 
                -- Bullet Tooth Tony in Snatch

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-spam.diff --]
[-- Type: text/x-diff, Size: 798 bytes --]

diff --git a/lisp/spam.el b/lisp/spam.el
index 194668e..cf729e3 100644
--- a/lisp/spam.el
+++ b/lisp/spam.el
@@ -2726,9 +2726,7 @@ With a non-nil REMOVE, remove the ADDRESSES."
               (with-current-buffer summary-buffer-name
                 (setq article-string (spam-get-article-as-string article)))
               (when (stringp article-string)
-                (insert "From \n") ; mbox separator (sa-learn only checks the
-                                   ; first five chars, so we can get away with
-                                   ; a bogus line))
+                (insert (concat "From nobody " (current-time-string) "\n")) ; mbox separator
                 (insert article-string)
                 (insert "\n"))))
           ;; call sa-learn on all messages at the same time

             reply	other threads:[~2011-01-17 19:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-17 19:50 Tom Rauchenwald [this message]
2011-01-19 21:32 ` Ted Zlatanov
2011-01-22  9:59   ` Tom Rauchenwald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ei8b71i6.fsf@sec.modprobe.de \
    --to=sehnsucht.nach.unendlichkeit@quantentunnel.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).