patch-README 923 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-README,v 1.1 2007/09/07 08:13:20 aanriot Exp $
  2. --- README.orig Fri Sep 7 10:02:26 2007
  3. +++ README Fri Sep 7 10:03:34 2007
  4. @@ -92,6 +92,25 @@ These will override these commands:
  5. <Esc>t = test for spamicity.
  6. <Esc>u = de-register as spam, register as non-spam, and move to inbox folder.
  7. +Alternatively, if you use gnus you could add the following lines to your
  8. +.gnus to accomplish a similar result:
  9. +
  10. +(defun spam ()
  11. + (interactive)
  12. + (pipe-message "/usr/local/bin/bmf -S")
  13. + (gnus-summary-move-article 1 "nnml:Spam"))
  14. +
  15. +(defun notspam ()
  16. + (interactive)
  17. + (pipe-message "/usr/local/bin/bmf -N")
  18. + (gnus-summary-move-article 1 "nnml:inbox"))
  19. +
  20. +(add-hook
  21. + 'gnus-sum-load-hook
  22. + (lambda nil
  23. + (define-key gnus-summary-mode-map (read-kbd-macro "C-c C-o") 'spam)
  24. + (define-key gnus-summary-mode-map (read-kbd-macro "C-c C-p") 'notspam)))
  25. +
  26. How to train bmf
  27. ================