Gnus development mailing list
 help / color / mirror / Atom feed
From: Brian Sniffen <bts@evenmere.org>
To: ding@gnus.org
Subject: Backgrounded bogofilter learning
Date: Wed, 14 Oct 2009 19:45:45 -0400	[thread overview]
Message-ID: <cb6c0eda0910141645n618c52e6i261d2f4381428c19@mail.gmail.com> (raw)

May I propose running bogofilter's training mode in the background for
better performance?

--- spam.el.~7.105.~	2009-10-13 18:31:56.000000000 -0400
+++ spam.el	2009-10-13 18:33:15.000000000 -0400
@@ -2554,7 +2554,7 @@
 	      (apply 'call-process-region
 		     (point-min) (point-max)
 		     spam-bogofilter-program
-		     nil nil nil switch
+		     nil 0 nil switch
 		     (if db `("-d" ,db "-v") `("-v")))))))
     (gnus-error 5 "`spam.el' doesn't support obsolete bogofilter versions")))

It's more fragile if bogofilter fails, but *much* faster in most uses.
 And if your local bogofilter install is busted, you'll find out when
you use a synchronous call-process-region to read data from it.

-Brian

-- 
Brian Sniffen
http://evenmere.org/~bts/
<bts@evenmere.org>



             reply	other threads:[~2009-10-14 23:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-14 23:45 Brian Sniffen [this message]
2009-10-16 14:12 ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cb6c0eda0910141645n618c52e6i261d2f4381428c19@mail.gmail.com \
    --to=bts@evenmere.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).