From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EHtEHHOAfWKFDAAAbAwnHQ (envelope-from ) for ; Thu, 12 May 2022 23:47:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AKkhHHOAfWJDAwEA9RJhRA (envelope-from ) for ; Thu, 12 May 2022 23:47:31 +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 E174E1ACDA for ; Thu, 12 May 2022 23:47:30 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DDFAF5F722; Thu, 12 May 2022 21:47:27 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 753355F6BF for ; Thu, 12 May 2022 21:47:25 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 430F95FBD7; Thu, 12 May 2022 17:47:24 -0400 (EDT) Received: (nullmailer pid 1873158 invoked by uid 1000); Thu, 12 May 2022 21:47:23 -0000 From: David Bremner To: hgv , notmuch@notmuchmail.org Subject: Re: Help with sending mail from notmuch-emacs In-Reply-To: <165213325238.16557.2841309328065638457@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa> References: <165213325238.16557.2841309328065638457@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa> Date: Thu, 12 May 2022 18:47:23 -0300 Message-ID: <87h75uxw2c.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: EYQ2BOHJQW56UHP4USQLEISMZHZC6YBR X-Message-ID-Hash: EYQ2BOHJQW56UHP4USQLEISMZHZC6YBR 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=1652392051; 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=uh9h/QJmUtG9DxuHU6xrpoui1otM2Sy5GTFidA5o+lo=; b=rlSxZRtYLqSaSJR9aKqGEc03U/xrPoETAuG5+Qi6ywUoXrv0KNeDQiDvgq7hyO0uqJtedW CeiqxOgCe9KVD6HmEvP/gOf+/zELlLKzGFui2Qj/NRPXmSe+S8OQNCrekWmU7so1SiiP5V dflIc+6M75f8BLxSR0z41rsFuaX5eKfEt3BRQ3WLYJmKP/rZSz4YhhJcS1200aC/gpBYn9 HeN77MxK5LvMx3XeSupfG/TP++EoX7Y0gkqRrtu1UQjOoRfx0A3C2GmEfawJgsa7SeW+mR fE5yvTNGmbgMbiQQUC2kL4hpkYyx4+VzXZFt1UI/x6JufqaroF7Kx+Eqh09ynQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652392051; a=rsa-sha256; cv=none; b=GdMnWD3WEMIX1UldulCqBsYsNzbuvGDpwiHET/7h8dvKuq2EtoF/OzU9qiD1UQR4qvhEVB aWfIsrvy3lnrq0BEJkCesFChAmWYyA2xotyPnQ8fOqqICFSAof7Sk4iNnpfHpKlA37D157 e42Iung2kyTBGL98ByOtjFxNSGqCwgsoCgBD34EGNgJp2Z19F1IJgrfFHTDm4Gd+mUrA7E jVTeKEXiZEMvS/iBnYo+In+P5gFDLBgNb4NnNDzT7twzb3atY2Nn2YkWGfJ0nTw6OasIWC MfCeSS6XkWq1lhRJMkj2MGGCA5hQj44et97bAX0p1OMO4SD2WwwHcs3knD5lhw== 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.41 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: E174E1ACDA X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: FdFrY//3Q/Fx hgv writes: > 1. Mail gets sent but doesn't save in the correct directory via FCC. I > use msmtpq as my sending program. Upon sending, I receive this > message: "message-send-mail-with-sendmail: Sending...failed to mail > for [ -oi -f hgv@fastmail.com -t ] : send was successful;" The mail is > sent but is not saved in the fcc dir nor entered into the notmuch > database. I have enabled emacs debugger (on entry with different > functions related to sending) and stepped through the process but > didn't see any pertinent information in the messages. My fcc line > reads `(setq notmuch-fcc-dirs "fastmail/Sent +sent +inbox +sent-new")` > (fuller notmuch-emacs config below). Any guidance on fixing or further > troubleshooting (what should I look for on debugger) is appreciated. Did you try setting a break on notmuch-maildir-fcc-with-notmuch-insert? I'm guessing that it doesn't get called because the output of msmtpq is misinterpreted as an error. I think this is a bug in msmtpq (or at least a way in which it differs from a traditional sendmail). For me (using nullmailer) "/usr/lib/sendmail -oi -f david@tethera.net -t < foo.eml" generates no output on success. If you can change / replace the msmtpq script, you could try commenting out the log line [1] that is printing "send was successful". Another test (which would be worthwhile for your second issue as well), is to test with M-x message-mail (however one calls a command in doom). This will eliminate the possibility of some setting of notmuch confusing things. Of course it still won't insert into the notmuch database, but if it is working you should not see a message about "Sending...failed" David [1] Maybe line 503?