From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A5EDD6DE02AC for ; Fri, 27 Jan 2017 18:23:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KKfT-ikWd1ej for ; Fri, 27 Jan 2017 18:23:31 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id CBDEE6DE01CE for ; Fri, 27 Jan 2017 18:23:31 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cXIfI-0007aN-DB; Fri, 27 Jan 2017 21:22:56 -0500 Received: (nullmailer pid 27325 invoked by uid 1000); Sat, 28 Jan 2017 02:23:26 -0000 From: David Bremner To: Vishal Belsare , notmuch@notmuchmail.org Subject: Re: Q: notmuch emacs, fcc, maildir, notmuch insert and message-kill-buffer-on-exit In-Reply-To: <87o9yvxh0g.fsf@gmail.com> References: <87efzrgxwx.fsf@gmail.com> <877f5j47h8.fsf@qmul.ac.uk> <878tpzgoii.fsf@gmail.com> <87o9yvxh0g.fsf@gmail.com> Date: Fri, 27 Jan 2017 22:23:26 -0400 Message-ID: <87bmur3otd.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2017 02:23:32 -0000 Vishal Belsare writes: > Vishal Belsare writes: > > Now it would be wonderful if this could be made to work with msmtpq. I > think that msmtpq's return value upon successfully enqueuing the message > to send, could be read as 'success' for insert and > message-buffer-kill-on-exit to happen. I suspect this is an upstream bug or missing feature in emacs message mode. Perhaps there needs to be some emacs lisp specialized to msmtp(q), or perhaps there is a more drop in replacement for sendmail. I know that nullmailer, a roughly similar MTA provides a /usr/{sbin,lib}/sendmail binary that does the right thing. > I do see problems in using something like this, i.e. if a message is > inserted into 'Sent' folder after being enqueued by msmtpq, but msmtpq > then not actually successfully sending the message. Could be nice if an > intermediate folder like 'Outbox' could be used to insert the message > enqueued by msmtp and then later moving it to 'Sent' after actually > sending it. After it's queued, there's not really any sensible way for the emacs ui to track it's progress. I don't know if msmtp offers some kind of hooks to facilitate this, but one possible strategy would be to use BCC _and_ FCC, and have the BCC filed in the sent folder (or tagged equivalently). d