projects
/
gnus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d4f99e0
)
(spam-stat hook): add spam-stat-save to the
author
Teodor Zlatanov
<tzz@lifelogs.com>
Mon, 24 Feb 2003 22:07:37 +0000
(22:07 +0000)
committer
Teodor Zlatanov
<tzz@lifelogs.com>
Mon, 24 Feb 2003 22:07:37 +0000
(22:07 +0000)
gnus-save-newsrc-hook, only when spam-use-stat is set
lisp/spam.el
patch
|
blob
|
history
diff --git
a/lisp/spam.el
b/lisp/spam.el
index
de99fcb
..
e259933
100644
(file)
--- a/
lisp/spam.el
+++ b/
lisp/spam.el
@@
-792,7
+792,8
@@
Uses `gnus-newsgroup-name' if category is nil (for ham registration)."
(insert article-string)
(spam-stat-buffer-is-non-spam))))))
- (add-hook 'gnus-save-newsrc-hook 'spam-stat-save))
+ (when spam-use-stat
+ (add-hook 'gnus-save-newsrc-hook 'spam-stat-save)))
(file-error (progn
(defalias 'spam-stat-register-ham-routine 'ignore)