A request to add to the files/OpenBSD-bmf-mini-howto.html lead me to
conclude that it's contents are largely redundant with the README in the
source tarball. So rather than clean up that html file, I simply
created patches/patch-README with the relevant change to obviate it.
A committer needs to review and then:
patch Makefile (see attached)
add patches/patch-README (see attached)
rm files/OpenBSD-bmf-mini-howto.html
commit
Thanks to Alexandre Anriot for GNUS verbiage and .gnus configuration.
Questions?
Jim
Index: Makefile
===================================================================
RCS file: /openbsd/mirror/ports/mail/bmf/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile 7 Oct 2005 00:21:04 -0000 1.10
+++ Makefile 7 Sep 2007 01:32:05 -0000
@@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.10 2005/10/07 00:21:04 fgsch Exp $
-COMMENT= "easy to use Bayesian spam filter"
+COMMENT= easy to use Bayesian spam filter
DISTNAME= bmf-0.9.4
-PKGNAME= ${DISTNAME}p0
+PKGNAME= ${DISTNAME}p1
CATEGORIES= mail
HOMEPAGE= http://sourceforge.net/projects/bmf
@@ -36,7 +36,7 @@
install
-DOCS= README ${FILESDIR}/OpenBSD-bmf-mini-howto.html
+DOCS= README
NO_REGRESS= Yes
@@ -48,4 +48,3 @@
${INSTALL_DATA} ${WRKSRC}/${DOCS} ${PREFIX}/share/doc/bmf
.include <bsd.port.mk>
-
--- README.orig Thu Sep 6 21:23:57 2007
+++ README Thu Sep 6 21:28:11 2007
@@ -92,6 +92,25 @@
<Esc>t = test for spamicity.
<Esc>u = de-register as spam, register as non-spam, and move to inbox folder.
+Alternatively, if you use gnus you could add the following lines to your
+.gnus to accomplish a similar result:
+
+ (defun spam ()
+ (interactive)
+ (pipe-message "/usr/local/bin/bmf -S")
+ (gnus-summary-move-article 1 "nnml:Spam"))
+
+ (defun notspam ()
+ (interactive)
+ (pipe-message "/usr/local/bin/bmf -N")
+ (gnus-summary-move-article 1 "nnml:inbox"))
+
+ (add-hook
+ 'gnus-sum-load-hook
+ (lambda nil
+ (define-key gnus-summary-mode-map (read-kbd-macro "C-c C-o") 'spam)
+ (define-key gnus-summary-mode-map (read-kbd-macro "C-c C-p") 'notspam)))
+
How to train bmf
================