Gnus development mailing list
 help / color / mirror / Atom feed
* Training dspam
@ 2008-03-29 20:38 James Cloos
  2008-03-31 14:16 ` Ted Zlatanov
  0 siblings, 1 reply; 4+ messages in thread
From: James Cloos @ 2008-03-29 20:38 UTC (permalink / raw)
  To: ding

The manual suggests a couple of (defun)s to report erroneously collated
spam and innocent mail.  The synchronous nature of the recommended
functions has proven painfully slow to use on my aging laptop, so I came
up with these modified (defun)s.

Perhaps they will be useful to someone else.

(defun gnus-summary-dspam-report-spam ()
  "Submit spam to dspam, then mark it as expirable."
  (interactive)
  (gnus-summary-show-raw-article)
  (gnus-eval-in-buffer-window gnus-article-buffer
    (save-restriction
      (widen)
      (call-process-region (point-min) (point-max) "/usr/bin/dspam"
        nil 0 nil "--mode=teft" "--user" (getenv "USER")
        "--class=spam" "--source=error")))
  (gnus-summary-mark-as-expirable 1))

(defun gnus-summary-dspam-report-innocent ()
  "Submit false-positive to dspam."
  (interactive)
  (gnus-summary-show-raw-article)
  (gnus-eval-in-buffer-window gnus-article-buffer
    (save-restriction
      (widen)
      (call-process-region (point-min) (point-max) "/usr/bin/dspam"
        nil 0 nil "--mode=teft" "--user"  (getenv "USER")
        "--class=innocent" "--source=error"))))

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-31 19:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-29 20:38 Training dspam James Cloos
2008-03-31 14:16 ` Ted Zlatanov
2008-03-31 14:42   ` James Cloos
2008-03-31 19:58     ` Reiner Steib

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).