From: Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org>
Subject: How to write function to operate on marked articles?
Date: Mon, 15 Mar 2004 13:24:36 +0100 [thread overview]
Message-ID: <hddd67el2m3.fsf@bacchus.pvv.ntnu.no> (raw)
Hi,
I have the following function to tell Spamassassin that a message is spam:
(defun stm-spamassassin-spam ()
(interactive)
(gnus-summary-show-raw-article)
(gnus-summary-save-in-pipe "sa-learn --spam");
(gnus-summary-move-article 1 "nnmaildir:boss" nil nil))
; "boss" is Norwegian meaning "rubbish".
It only works on the current article. Is there a way I can modify this
function to operate on all marked articles in the Summary buffer, one at a
time?
Regards,
--
Svend Tollak Munkejord
next reply other threads:[~2004-03-15 12:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-15 12:24 Svend Tollak Munkejord [this message]
2004-03-15 22:47 ` Frank Schmitt
[not found] ` <hddsmg8rjhu.fsf@bacchus.pvv.ntnu.no>
[not found] ` <m38yi0egce.fsf@fed1.frank-schmitt.net>
2004-03-17 7:45 ` Svend Tollak Munkejord
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=hddd67el2m3.fsf@bacchus.pvv.ntnu.no \
--to=stm+direct_reply@bacchus.pvv.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).