From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8DPVFbcl4GKwFQAAbAwnHQ (envelope-from ) for ; Tue, 26 Jul 2022 19:34:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MBffFbcl4GLeawEAauVa8A (envelope-from ) for ; Tue, 26 Jul 2022 19:34:47 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E9D6C280FF for ; Tue, 26 Jul 2022 19:34:46 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 658AE6080F; Tue, 26 Jul 2022 17:28:20 +0000 (UTC) X-Greylist: delayed 557 seconds by postgrey-1.36 at yantan; Tue, 26 Jul 2022 17:28:16 UTC Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by mail.notmuchmail.org (Postfix) with ESMTPS id 9F7BB5F529 for ; Tue, 26 Jul 2022 17:28:16 +0000 (UTC) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 723EC24010C for ; Tue, 26 Jul 2022 19:18:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1658855939; bh=vEokpID0Itlc0W+VUcRUn+NVfiqZaVRGVLCd0lapbkc=; h=From:To:Cc:Subject:Date:From; b=ijC52ymanWl9vZtIrmrHFx3nQGwSHt1mxpArWOhdX+itqTYGrbqfB4tOh2IXaxf0a +jaBS/gEwCFThWaLNzDQn3TO+i7UQ4sGRyiN22X2sI/aM4JFNC63HoIsfBAtnLYbJE MrlIFek7T3Nty7Zy6ajUrNZs/6cRdLnvlmot9m0+jCdbcIkyv+fiNStUHkDoGXBH/W /2gU/4b97TkpYclP2TbtQrTm51CMGpX2LLkINH/jQpxTfsL4THKS6Rzkz6Nw5B+AqA V8llMEmkD94Ymiopuyhtzo2S/5D0ZHMvTsM6dTKMfl07GXZ1OoN0BHYY9L3nk0/6t8 hxlnmokz5I7IQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LskCk2pD2z9rxV; Tue, 26 Jul 2022 19:18:58 +0200 (CEST) From: Dan =?utf-8?B?xIxlcm3DoWs=?= To: Justus Winter Subject: Re: Sending mail succeeded but signaled failure In-Reply-To: <87k080jgx8.fsf@thinkbox> References: <87k080jgx8.fsf@thinkbox> Date: Tue, 26 Jul 2022 17:18:57 +0000 Message-ID: <87mtcvu70e.fsf@cgc-instruments.com> MIME-Version: 1.0 Message-ID-Hash: MLJRCEE6IV3XIHHZJOETX3I62TERT2FL X-Message-ID-Hash: MLJRCEE6IV3XIHHZJOETX3I62TERT2FL X-MailFrom: dan.cermak@posteo.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658856887; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0f3dDtUbCc6shVU7+CXsyQ2OxP7nBkrYQN2mMkrpjiY=; b=SoVkH4LzU4VWliB5Kyh0eKZlYuh/o9C7ooZ2AUrGvxHLWEcaJkP7Hsc4eVoRJjaZ6Jd/Ty Hd0Q7coPKS73Zrza4zMtUabhmnWtMWEik2EoETNDeIEcQtwVMYI2mf759SSxBtPaJB0IUh uwaP6XJ5bTY3DyFprwDE1AoZcAIC9y33VTJE7r8lK/YrRN5UUCOE4q38iUr3s40OPZO6o2 OEa1F2W7Rr0p8wEEV7WMXVgotPFQN3XIITpEBml7wUyHoU5Oj68SDrKbZ02hzc8T6JFmC4 +u778lF6xWYbaS0wvMt3nTjxkF+q5TCHLCQW64RfTucAx3oqSoSxleiSWqk8Dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658856887; a=rsa-sha256; cv=none; b=u2VQgZbVZfBgrav5vlvP65kZHBgJQzpgk0ogq7t/hGgMjw30u0cuXCUsEIyjH9LXE+t3cS yunN1e2CljAuQif7iloLMGZQ4HihNFt8cOVJoreHcyUhfYtrXiStpTy4A1x6hW+dP4J7PH Pf9Q3cymWLiVrEmTvPCDDMzA20aWwy93UaETjp3IneL6SutkBjiGutcdI1LI6QUj8BnnX7 48pR9GSK6fLuWi/KxP/1+Ie7ARlFlaEqv9ivQMfrL2SLxnY39nXbAJBneiX5v5v84En3wq EF6NJd3aJoHRflyJJs0ljVi5d/k0Xt+Bmlvz39nYhwqLPfGOnvy6ZMtiCnKOcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.net header.s=2017 header.b=ijC52yma; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 5.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.net header.s=2017 header.b=ijC52yma; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E9D6C280FF X-Spam-Score: 5.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: MH5HHytGE2uB Hi Justus, Justus Winter writes: > Hello, > > I just embarrassed myself a little by sending the same mail over and > over again. The reason for that is that notmuch-emacs signaled failure, > i.e. it displayed an error message in the status buffer and didn't close > the compose buffer, yet it did in fact send the mail. > > I suspect that my configuration has to do with that and someone is > trying to be helpful. So I use msmtp with the authentication password > encrypted using OpenPGP. Then, I use 'gpg --no-tty -q -d ...' as > msmtp's passwordeval function. Now, my OpenPGP key has expired, but > that doesn't stop GnuPG from decrypting the secret, and in fact it > returns the status code 0. It also prints > > gpg: Note: secret key 08CC70F8D8CC765A expired at Mon 25 Jul 2022 05:31:26 PM CEST > > to stderr, which is picked up by notmuch-emacs, it says > > sending...failed to gpg: Note: secret key 08CC70F8D8CC765A expired at Mon 25 Jul 2022 05:31:26 PM CEST > > in the status buffer while the compose buffer stays open. > > I suspect that this is not notmuch's fault, but I don't know where else > to turn to with this bug report. I think this is msmtp's "fault". Afaik if msmtp receives something on stderr for the passwordeval, then it considers that a failure, however it will still take the password and send your mail. I have run into exactly the same problem when gpg started to print --8<---------------cut here---------------start------------->8--- gpg: all values passed to '--default-key' ignored --8<---------------cut here---------------end--------------->8--- stderr and msmtp took that as failure. I have "fixed" that issue by adding a --8<---------------cut here---------------start------------->8--- 2> /dev/null --8<---------------cut here---------------end--------------->8--- at the end of each passwordeval in ~/.msmtprc. Hope this helps, Dan