Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: ding@gnus.org
Subject: Re: deferring sending mail
Date: Wed, 08 Dec 2010 16:43:29 +0000	[thread overview]
Message-ID: <874oao17g3.fsf@ucl.ac.uk> (raw)
In-Reply-To: <8762v4wded.fsf@topper.koldfront.dk>

asjo@koldfront.dk (Adam Sjøgren) writes:

[...]

> If it is a specific time, maybe C-c C-j is useful:

[...]

> If you just want it queued until you are online again, maybe the MTA
> could handle that?

I use C-c C-j all the time.  My use case is:


1. fetch emails onto laptop,
2. get on train for long commute (either to or from work),
3. read and answer emails (using C-c C-j as I have a very simple MTA,
   one which doesn't queue emails, and I like it that way),
4. shut down laptop (for a number of reasons, I don't use
   suspend/hibernate),
5. get home/work and restart system including emacs,
6. start gnus, and
7. execute gnus-delay-send-queue.


I would like 7 to happen automatically upon 6 being done as I often
forget and my delayed emails sit there unsent.  My question is short:
which hook would be best to have gnus-delay-send-queue executed when
gnus starts?

The obvious would appear to be gnus-startup-hook but the documentation
is unclear as it refers to NNTP server...  Is this a holdover from the
view of Gnus for news alone?  The alternative is gnus-load-hook but in
this case the documentation doesn't make clear at what stage of the load
process this gets invoked ("a hook run while Gnus is loaded").  If
"while" were meant to be "once", this could be it?

Obviously I can try both and see what happens...  but I'm the train now
;-)

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 + No Gnus v0.11



  reply	other threads:[~2010-12-08 16:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 13:09 Robert Pluim
2010-12-08 14:24 ` Adam Sjøgren
2010-12-08 16:43   ` Eric S Fraga [this message]
2010-12-08 17:59     ` Julien Danjou
2010-12-08 19:50       ` Eric S Fraga
2010-12-08 16:44   ` Robert Pluim
2010-12-08 17:40     ` Robert Pluim

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=874oao17g3.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --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).