From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75703 Path: news.gmane.org!not-for-mail From: Tom Rauchenwald Newsgroups: gmane.emacs.gnus.general Subject: spam.el + sa-learn Date: Mon, 17 Jan 2011 20:50:57 +0100 Organization: modprobe.de Message-ID: <87ei8b71i6.fsf@sec.modprobe.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1295293959 25295 80.91.229.12 (17 Jan 2011 19:52:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2011 19:52:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24054@lists.math.uh.edu Mon Jan 17 20:52:35 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pev7y-0001fb-I9 for ding-account@gmane.org; Mon, 17 Jan 2011 20:52:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Pev70-0005PM-I8; Mon, 17 Jan 2011 13:51:34 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Pev6y-0005PD-UW for ding@lists.math.uh.edu; Mon, 17 Jan 2011 13:51:32 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pev6x-00041K-3X for ding@lists.math.uh.edu; Mon, 17 Jan 2011 13:51:32 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pev6u-0004mQ-RN for ding@gnus.org; Mon, 17 Jan 2011 20:51:28 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pev6r-00016y-6P for ding@gnus.org; Mon, 17 Jan 2011 20:51:25 +0100 Original-Received: from 77.119.214.179.wireless.dyn.drei.com ([77.119.214.179]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jan 2011 20:51:25 +0100 Original-Received: from sehnsucht.nach.unendlichkeit by 77.119.214.179.wireless.dyn.drei.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jan 2011 20:51:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 77.119.214.179.wireless.dyn.drei.com User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:oVpYA9e6bW9UBQSwDnIs6ZqtNhE= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75703 Archived-At: --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=patch-spam.diff 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 --=-=-=--