From: "Adam Sjøgren" <asjo@koldfront.dk>
To: ding@gnus.org
Subject: Re: What's your gnus-demon-scan-news idle time?
Date: Thu, 24 Oct 2019 23:08:06 +0200 [thread overview]
Message-ID: <87ftjhlumh.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <875zkeyd5f.fsf@dick>
dick.r.chiang@gmail.com writes:
> 1. Do you run gnus in a separate emacs instance?
Yes.
> 2. If you use gnus-demon to refresh messages, what are your TIME and IDLE
> values? If you don't use gnus-demon, are you manually refreshing via "g" or
> some other method?
I have this set up:
; Demon to fetch email every 5 minutes when Emacs has been idle for 5 minutes:
(gnus-demon-add-handler 'gnus-demon-scan-news 5 5)
and I use 'g' manually to fetch as well.
Come to think of it, I have wrapped 'g' like this:
(defun asjo-group-get-new-news ()
"Do the equivalent of g M-< n :*)"
(interactive)
(save-excursion
(setq asjo-fetch-was-manual t)
(gnus-group-get-new-news)
(goto-char (point-min)))
(gnus-group-next-unread-group 1)
(setq asjo-fetch-was-manual nil))
Mainly so point jumps to the first unread group after news are fetched.
(I use the asjo-fetch-was-manual variable to determine whether new
emails gets forwarded to my phone or not - the idea being that if the
fetch is done manually, it means that I am sitting at the Emacs, so I
don't need the emails to go to the the phone¹.)
Best regards,
Adam
¹ I don't use IMAP to share email between Gnus and phone, instead I use
nnml to store email locally, and automatically forward a subset (using
splitting) of the emails to the phone.
--
"Where the world is going? Adam Sjøgren
Back to where it once was" asjo@koldfront.dk
next prev parent reply other threads:[~2019-10-24 21:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-24 4:34 dick.r.chiang
2019-10-24 5:35 ` Eric S Fraga
2019-10-24 13:55 ` Jorge A. Alfaro-Murillo
2019-10-24 14:17 ` Gijs Hillenius
2019-10-24 21:08 ` Adam Sjøgren [this message]
2019-10-25 12:59 ` Eric S Fraga
2019-10-25 13:27 ` Adam Sjøgren
2019-10-25 15:37 ` Eric S Fraga
2019-10-25 15:49 ` Adam Sjøgren
2019-10-27 15:33 ` Eric S Fraga
2019-10-24 23:30 ` Bob Newell
2019-10-25 1:42 ` Eric Abrahamsen
2019-10-25 2:06 ` dick
2019-10-25 3:10 ` Eric Abrahamsen
2019-10-31 13:36 ` Lars Ingebrigtsen
2019-11-14 2:54 ` Wrong default NNIR search method Spenser Truex
2019-11-14 18:51 ` Eric Abrahamsen
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=87ftjhlumh.fsf@tullinup.koldfront.dk \
--to=asjo@koldfront.dk \
--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).