From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15737 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.user Subject: Re: delayed sending of mail Date: Wed, 22 Aug 2012 23:00:21 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87fw7e4p7e.fsf@topper.koldfront.dk> References: <87harvnkj1.fsf@fsfe.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345669247 15795 80.91.229.3 (22 Aug 2012 21:00:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2012 21:00:47 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Aug 22 23:00:47 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T4I2g-0002lk-He for gegu-info-gnus-english@m.gmane.org; Wed, 22 Aug 2012 23:00:46 +0200 Original-Received: from localhost ([::1]:52268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4I2f-0003Q0-3m for gegu-info-gnus-english@m.gmane.org; Wed, 22 Aug 2012 17:00:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4I2X-0003Pf-Ln for info-gnus-english@gnu.org; Wed, 22 Aug 2012 17:00:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4I2W-0007hT-I8 for info-gnus-english@gnu.org; Wed, 22 Aug 2012 17:00:37 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4I2W-0007h9-BB for info-gnus-english@gnu.org; Wed, 22 Aug 2012 17:00:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T4I2T-0002Sf-Uy for info-gnus-english@gnu.org; Wed, 22 Aug 2012 23:00:33 +0200 Original-Received: from 2505ds5-by.0.fullrate.dk ([89.150.142.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Aug 2012 23:00:33 +0200 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Aug 2012 23:00:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15737 Archived-At: 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-Play= ing:\\|X-Gnus-Delayed:")) ; Remove date, so delayed messages (C-c C-j) don't get a date until ; sent : (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 m= inutes: (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=F8gren every day." asjo@koldfront.dk