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 <[email protected]>:
(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." [email protected]
_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english