From: Ted Zlatanov <tzz@lifelogs.com>
To: James Cloos <cloos@jhcloos.com>
Cc: ding@gnus.org
Subject: Re: Training dspam
Date: Mon, 31 Mar 2008 09:16:59 -0500 [thread overview]
Message-ID: <86od8vq8pw.fsf@lifelogs.com> (raw)
In-Reply-To: <m38x019sfx.fsf@lugabout.jhcloos.org> (James Cloos's message of "Sat, 29 Mar 2008 16:38:03 -0400")
On Sat, 29 Mar 2008 16:38:03 -0400 James Cloos <cloos@jhcloos.com> wrote:
JC> The manual suggests a couple of (defun)s to report erroneously collated
JC> spam and innocent mail. The synchronous nature of the recommended
JC> functions has proven painfully slow to use on my aging laptop, so I came
JC> up with these modified (defun)s.
JC> Perhaps they will be useful to someone else.
JC> (defun gnus-summary-dspam-report-spam ()
JC> "Submit spam to dspam, then mark it as expirable."
JC> (interactive)
JC> (gnus-summary-show-raw-article)
JC> (gnus-eval-in-buffer-window gnus-article-buffer
JC> (save-restriction
JC> (widen)
JC> (call-process-region (point-min) (point-max) "/usr/bin/dspam"
JC> nil 0 nil "--mode=teft" "--user" (getenv "USER")
JC> "--class=spam" "--source=error")))
JC> (gnus-summary-mark-as-expirable 1))
JC> (defun gnus-summary-dspam-report-innocent ()
JC> "Submit false-positive to dspam."
JC> (interactive)
JC> (gnus-summary-show-raw-article)
JC> (gnus-eval-in-buffer-window gnus-article-buffer
JC> (save-restriction
JC> (widen)
JC> (call-process-region (point-min) (point-max) "/usr/bin/dspam"
JC> nil 0 nil "--mode=teft" "--user" (getenv "USER")
JC> "--class=innocent" "--source=error"))))
Thanks for the code. It looks useful, can it go into spam.el (do you
have the papers)? I may use the same approach for all the reporting
functions if it's faster than what's there already. I don't use dspam
personally and need to review to make sure the code is consistent, but
the papers come first...
Ted
next prev parent reply other threads:[~2008-03-31 14:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-29 20:38 James Cloos
2008-03-31 14:16 ` Ted Zlatanov [this message]
2008-03-31 14:42 ` James Cloos
2008-03-31 19:58 ` Reiner Steib
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=86od8vq8pw.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=cloos@jhcloos.com \
--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).