From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Tell the Agent to download all articles as they are read
Date: Thu, 03 Oct 2002 16:12:45 +0200 [thread overview]
Message-ID: <87vg4jvcf6.fsf@crybaby.cs.uni-dortmund.de> (raw)
I want the Agent to download an article when I read it. So here's
what I did:
(defun kai-gnus-agent-fetch-article ()
(let ((gnus-command-method gnus-current-select-method))
(gnus-agent-fetch-articles
gnus-newsgroup-name
(list gnus-current-article))))
(add-hook 'gnus-select-article-hook 'kai-gnus-agent-fetch-article)
This seems to work. But I think it's kludgy that I have to bind
gnus-command-method.
What do you think about putting this into Gnus?
kai
PS: After digging around in the source code for a while, I found that
it seems to be normal to let-bind gnus-command-method like this.
Okay.
--
~/.signature is: umop ap!sdn (Frank Nobis)
next reply other threads:[~2002-10-03 14:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-03 14:12 Kai Großjohann [this message]
2002-10-03 14:39 ` Kai Großjohann
2002-10-03 15:26 ` Wes Hardaker
2002-10-03 15:33 ` Kai Großjohann
2002-10-03 23:51 ` Wes Hardaker
2002-10-04 6:34 ` Kai Großjohann
2002-10-04 20:28 ` David S Goldberg
2002-10-05 21:31 ` Kai Großjohann
2002-10-05 21:32 ` Kai Großjohann
2002-10-07 3:55 ` Danny Siu
2002-10-08 17:50 ` Kai Großjohann
2002-10-11 4:15 ` Danny Siu
2002-10-11 8:35 ` Kai Großjohann
2002-10-11 4:15 ` Danny Siu
2002-10-14 9:34 ` Danny Siu
2002-10-14 12:14 ` Kai Großjohann
2002-10-15 6:14 ` Danny Siu
2002-10-15 9:22 ` Kai Großjohann
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=87vg4jvcf6.fsf@crybaby.cs.uni-dortmund.de \
--to=kai.grossjohann@cs.uni-dortmund.de \
/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).