From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 KBoECjz132KZogAAbAwnHQ (envelope-from ) for ; Tue, 26 Jul 2022 16:07:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cCAHCTz132I/MQAAG6o9tA (envelope-from ) for ; Tue, 26 Jul 2022 16:07:56 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 CFEC621624 for ; Tue, 26 Jul 2022 16:07:49 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B4A9360812; Tue, 26 Jul 2022 14:07:44 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 1928D5F802 for ; Tue, 26 Jul 2022 14:07:42 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id DF5335FBD0; Tue, 26 Jul 2022 10:07:40 -0400 (EDT) Received: (nullmailer pid 1225623 invoked by uid 1000); Tue, 26 Jul 2022 14:07:38 -0000 From: David Bremner To: Justus Winter , notmuch@notmuchmail.org Subject: Re: Sending mail succeeded but signaled failure In-Reply-To: <87k080jgx8.fsf@thinkbox> References: <87k080jgx8.fsf@thinkbox> Date: Tue, 26 Jul 2022 10:07:38 -0400 Message-ID: <87bktc3r2t.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: SEIVELVYUWU56IZZBOQX4Y7ACJUFNYGR X-Message-ID-Hash: SEIVELVYUWU56IZZBOQX4Y7ACJUFNYGR X-MailFrom: david@tethera.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 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=1658844470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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; bh=OU3ShaTuLFJlh6N1bhgVetp8BgYzDKrlifRdTGlNDrw=; b=MfG+laeoFAgBE7a99i4lNavbKjRRd7xoba/PW99efAmOZ5cnCESMxWGwsoIEQ+EvsWvH+U eFpjtfkmyiICUeRZjgy9awtgR8WJEIIGIrUtAZFyfCs4RLT/eaV2EwaM9RWTR4Dv/ZkD1T tko3F0pZL+HX83DClNOHXkIK4wIJx+tfOR3OvSYDG4cTkHKrVhes3lo3NxbFNasRJ38tW4 ZegC7EqDGPCOYn5iC8XCHEBdYlf8C/zpKQ5MwKOP3xUZ8WC8dx860svT0Z0+buQxRfr4YX ogPGLmXonQkYjcaOfFiFUJwgChUs+txJrIs+IjNwempPZFbKfX0hxgWkwCNliw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658844470; a=rsa-sha256; cv=none; b=fOjWKOIM+L+rgz515P+uPjOFeTc80Cv2Yv3311WLXhsRiQQxcMNP2nPFTISLED20MbanIk rY2v7HAGdfX55fc/3DyCgUynhzHFstMQ+hxUQfCE2ZNmbyD4uV/0TUUSyL+sYGIjS2rNTe BsUmiqV+F9DnELrL2Ha1gE6ffT39qg+Rd8xyhnxI0OxL9K20qOxabxZs9Y/mERLt49WH7B 3bg8X8FP0D7rNprDBDNh0Kj5a0TciChRSmpGeoGuV/7y1bB4y6N9tIqcVCEnpUr9ZrjCv6 c4S7aRPlGDQ7BqgDzwG32KVOcS6nCpbA6dZkILwNbuIoKY4YjnBDnTqt1WF8NQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.74 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: CFEC621624 X-Spam-Score: -2.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: fMLFA7y6KxA+ 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 guess the first step is to see if you can duplicate the problem with plain M-x message-mode. The mechanics of sending should be identical in notmuch-message-mode unless (surprise!) I misremember something. d