[Spambayes] Hammiefilter doesn't write out the pickle
Neale Pickett
neale@woozle.org
Mon Nov 18 17:09:19 2002
So then, "Moore, Paul" <Paul.Moore@atosorigin.com> is all like:
> I realise that this area is currently in a state of flux. I don't have a
> problem with changing things as I go. It's just a case of "what's best
> right now?"
CVS is back up, so the answer is now "hammiefilter".
Wait, no, it's down again. The answer is now "hammie".
Your setup is nearly identical to mine. Here is some elisp to bind "B
h" to "train as ham and move to another folder" and "B s" to "train as
spam and move to the spam folder". Drop it into .gnus.
(defun pipe-message (command)
(interactive "sCommand: ")
(save-window-excursion
(gnus-summary-show-article 'raw)
(gnus-summary-select-article-buffer)
(shell-command-on-region (point-min) (point-max) command))
(gnus-summary-show-article))
(defun spam ()
(interactive)
(pipe-message "/home/neale/bin/hammie -s")
(gnus-summary-move-article 1 "spam"))
(defun notspam ()
(interactive)
(pipe-message "/home/neale/bin/hammie -g")
(gnus-summary-move-article 1))
(add-hook
'gnus-sum-load-hook
(lambda nil
(define-key gnus-summary-mode-map [(B) (h)] 'notspam)
(define-key gnus-summary-mode-map [(B) (s)] 'spam)))
> As for why I'm using pickles, it's simply because that's the default.
Ah, that's what I figured. So the new hammiefilter is going to change
the default to the dbm method, but *only* for hammiefilter. That sucks,
cause now there's this weird disparity between the two. Maybe we should
consider changing the default in Options.py...
> This would be much easier if I wasn't working in "batch mode" - mild-
> mannered (as if!) Exchange/Outlook user by day, masked Gnus/POP3 user
> by night :-)
Everyone has their own dirty little secret, but please spare us the
details of what you do in those phone booths ;)
Considering getting a cell phone now,
Neale
More information about the Spambayes
mailing list