Gnus development mailing list
 help / color / mirror / Atom feed
From: Doug Bagley <doug@deja.com>
Subject: Re: access things like slashdot only at specified times?
Date: 09 Feb 2000 20:12:40 -0600	[thread overview]
Message-ID: <yg9puu5ztyf.fsf@yow.dejanews.com> (raw)
In-Reply-To: Shenghuo ZHU's message of "09 Feb 2000 18:51:18 -0500"

Shenghuo ZHU <zsh@cs.rochester.edu> writes:
> John> in gnus-secondary-select-methods to be time-dependent.  As an
> John> alternative, I wouldn't mind if gnus only checked nnslashdot once a
> John> day.  I want the same to happen with one of my mail sources (a pop
> John> server that is down a lot and that I don't get a lot of mail from, so
> John> I would be happy to just check it once a day).
> 
> John> Has anyone done anything like this already?
> 
> You can use agent to cover nnslashdot, put `:plugged t' in those mail
> sources which need to be checked regularly and set
> gnus-agent-send-mail-function to message-send-mail-with-sendmail.
> 
> Between 10AM to 5PM, you can run gnus unplugged. Otherwise, plug it.

I have a different approach.  I only want nnslashdot to update when I
want to read it.  Normally, when I press "g", I want everything but
slashdot to update.

So here's what I did:

Instead of the recommended:

     (setq gnus-secondary-select-methods
           '((nnslashdot "")))

I did this:
- created a Slashdot topic
- customized the topic to subscribe to groups with nnslashdot in the name
- created the following lisp for my gnus:

(define-key gnus-group-mode-map "\M-s" 'kof:gnus-update-slashdot)
(defun kof:gnus-update-slashdot ()
  (interactive)
  (let* ((gnus-secondary-select-methods '((nnslashdot ""))))
    (gnus-group-get-new-news)
    (gnus-group-find-new-groups)))

Now, in the Group buffer, I just press M-s to update the slashdot
groups if I feel like reading slashdot (ain't all that often
sometimes). 

Cheers,
Doug



  reply	other threads:[~2000-02-10  2:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-09 23:27 John H. Palmieri
2000-02-09 23:51 ` Shenghuo ZHU
2000-02-10  2:12   ` Doug Bagley [this message]
2000-02-15 22:00     ` John H. Palmieri

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=yg9puu5ztyf.fsf@yow.dejanews.com \
    --to=doug@deja.com \
    /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).