From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74860 Path: news.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: Re: deferring sending mail Date: Wed, 08 Dec 2010 16:43:29 +0000 Message-ID: <874oao17g3.fsf@ucl.ac.uk> References: <8762v4wded.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291830569 5425 80.91.229.12 (8 Dec 2010 17:49:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 17:49:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23217@lists.math.uh.edu Wed Dec 08 18:49:26 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQO8r-0005bO-JJ for ding-account@gmane.org; Wed, 08 Dec 2010 18:49:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PQO8e-0003St-Ja; Wed, 08 Dec 2010 11:49:12 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PQO8d-0003Se-Cf for ding@lists.math.uh.edu; Wed, 08 Dec 2010 11:49:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PQO8b-0000IU-L0 for ding@lists.math.uh.edu; Wed, 08 Dec 2010 11:49:10 -0600 Original-Received: from vscane-b.ucl.ac.uk ([144.82.108.141]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PQO8a-00060c-00 for ; Wed, 08 Dec 2010 18:49:08 +0100 Original-Received: from [85.210.137.47] (helo=localhost) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1PQO8Y-0004p8-Cy for ding@gnus.org; Wed, 08 Dec 2010 17:49:06 +0000 X-Face: av6A"vZ{AypDB`d^.T35oG%$E*Qh]4F)K=*$-NHz5{7WZfAFQFB]F@gf}l9`XLs9(iD?D/! nafKE,S#G!4W/flj=9(U{]t'lP,,5~:s*~;kKR User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-UCL-MailScanner-Information: Please contact the UCL Helpdesk, helpdesk@ucl.ac.uk for more information X-UCL-MailScanner: Found to be clean X-UCL-MailScanner-From: e.fraga@ucl.ac.uk X-Spam-Status: No X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74860 Archived-At: asjo@koldfront.dk (Adam Sj=C3=B8gren) 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 --=20 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 + No Gnus v0.11