[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delayed sending of mail
From: |
Adam Sjøgren |
Subject: |
Re: delayed sending of mail |
Date: |
Wed, 22 Aug 2012 23:00:21 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
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