From: asjo@koldfront.dk (Adam Sjøgren)
To: info-gnus-english@gnu.org
Subject: Re: delayed sending of mail
Date: Wed, 22 Aug 2012 23:00:21 +0200 [thread overview]
Message-ID: <87fw7e4p7e.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <87harvnkj1.fsf@fsfe.org>
On Wed, 22 Aug 2012 15:06:26 +0200, Kevin wrote:
> someone on IRC asked about how to make a function that delays sending of
> email, so as to have a chance to edit/cancel within 2 minutes or so.
When I want delayed sending of an email/article, instead of using C-c
C-c to send it, I go C-c C-j (which is bound to gnus-delay-article).
Then I am prompted about how long to delay it, or when to send it. After
answering that, the email shows up in nndraft:delayed until the set
time, when it is sent.
In my .gnus I have these things to make it work:
; Activate delayed messages:
(gnus-delay-initialize)
; Show X-Now-Playing and X-Gnus-Delayed header:
(setq gnus-visible-headers (concat gnus-visible-headers "\\|^X-Now-Playing:\\|X-Gnus-Delayed:"))
; Remove date, so delayed messages (C-c C-j) don't get a date until
; sent <mailman.1180.1266014215.14305.info-gnus-english@gnu.org>:
(setq message-draft-headers '(References From))
Only the first one is essential, I think. Oh, and the documentation of
gnus-delay-article says that delayed messages are sent after new news is
fetched, which means that these lines in my .gnus:
; 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)
(gnus-demon-init)
probably are essential as well. (And sending is potentially ~5 minutes
off.)
Maybe you can build upon gnus-delay-article if you want a fixed delay?
Best regards,
Adam
--
"A cat has nine lives, but a bullfrog croaks Adam Sjøgren
every day." asjo@koldfront.dk
next prev parent reply other threads:[~2012-08-22 21:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 13:06 Kevin Brubeck Unhammer
2012-08-22 21:00 ` Adam Sjøgren [this message]
2012-08-22 21:04 ` Adam Sjøgren
2012-08-23 9:04 ` Kevin Brubeck Unhammer
2012-08-23 10:25 ` Adam Sjøgren
2012-08-22 21:01 ` Reiner Steib
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=87fw7e4p7e.fsf@topper.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=info-gnus-english@gnu.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).