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 24A836DE09CD for ; Sat, 26 Oct 2019 15:07:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.111 X-Spam-Level: X-Spam-Status: No, score=-0.111 tagged_above=-999 required=5 tests=[AWL=-0.189, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PLING_QUERY=0.279, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] 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 RUANjf9I6gQB for ; Sat, 26 Oct 2019 15:07:46 -0700 (PDT) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by arlo.cworth.org (Postfix) with ESMTPS id 7EC4F6DE0937 for ; Sat, 26 Oct 2019 15:07:46 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id a21so4787129edj.8 for ; Sat, 26 Oct 2019 15:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BN0oSwSPocaGcyfU7x1Vc3hmkMAy9zcR8HPc7XCaqPc=; b=EKVrO8Y7pzkv6xQ1cS8cUnonqJT641wGkaP2BKqZ9iQsvnfiPQsgZzQPxSKexgp6G9 5/5iA19Pu6shb0sjlNqEPY68RZIoO3rNI2Ue92Py19SJG/gnPuUor83oBU38VzwlozZP GUZmLChe56I4+oot+MCRZAdpYb+2yRCm3nvipqPAf2oGeR64x7EVscmHA7E5kT+yL2wQ 9A8RTq3p7aq+GsEhfcFjsPF2juqCRmWkLe+qNxJLfP1w9qVZX/roxHjNGQB1fOtPq87n 811oRmmz1z5UUHaNp0bSLeDh28/qV4fTJqr7DGpVvbOL9B4iQRodWryAtVh/U0gcklSt jqiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BN0oSwSPocaGcyfU7x1Vc3hmkMAy9zcR8HPc7XCaqPc=; b=B77Gs7Ww5fge+qq0NJC6F231ftO7aOqvm66qe4RxdNBRlkj+9Tc1EjDu9IIg9UEnmo qranVy8eSG6k+wXnW0pRhR5lHHPU2iUeh8s3ZGr2dUZqdAL2EMYm0G7RlwAudSOgtC2N El+sS9o4RZG+6K4OZDY40HGkOA2kNm62OOONqlwLctbv7+LAQ/MtLErJV0E0B2N0bN8T 5XxkRf5fpP5NMGj8fDhvnzOUM3p35fxGutKBZJK7OXL24EAefUK8agGaCV9xLBZ6OlF0 P8tw4GSk52m2RT1tA5AN9uM3EbGJr7hXXLZ6FbPjsHWI+ZZTKlEh7kte3UZHjRHpZ1Uk 2j3w== X-Gm-Message-State: APjAAAUNKw7XRICDetnc6w3WiZTmb/Ap8h9NOmYNTLywHIVBWbJP6mZP QHjQL+BJY5absUEMlSwrBb+B+CwgXI7qc7Ez2A== X-Google-Smtp-Source: APXvYqzNVjAI9vosCG4L6GYNANf3OBwbwVzrRRNbqcv2QFMAyyluSC5twcEzKcI+JxsGM89cuxFkuQIF4zVDVYk7BdU= X-Received: by 2002:a17:906:29ce:: with SMTP id y14mr5588436eje.271.1572127663521; Sat, 26 Oct 2019 15:07:43 -0700 (PDT) MIME-Version: 1.0 References: <874kzvo317.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <874kzvo317.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> From: Aren Tyr Date: Sat, 26 Oct 2019 23:07:32 +0100 Message-ID: Subject: Re: notmuch-mua-send + msmtp IS sending perfectly... but Emacs says it failed! Why?! To: Tomas Nordin Cc: notmuch@notmuchmail.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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, 26 Oct 2019 22:07:47 -0000 > I also have msmtp and here is my set of .emacs configs > > (setq sendmail-program "/usr/bin/msmtp") > (setq mail-specify-envelope-from t) > (setq message-sendmail-envelope-from 'header) > (setq mail-envelope-from 'header) > (setq send-mail-function 'message-send-mail-with-sendmail) > > There is a line for it in my .mailrc: > > set sendmail="/usr/bin/msmtp" > > I /think/ that's all I have about the sending of mails and it works > fine. (plus the msmtp configs of course). > > Best regards > -- > Tomas Hi Tomas Thanks for the response. Unfortunately even with these settings it doesn't fix the issue. I even tried creating ~/.mailrc with your set sendmail line as above. It's strange. The mail /is/ getting sent just fine. The error message doesn't really make any sense/is deeply ambiguous: Sending via mail... message-send-mail-with-sendmail: Sending...failed to gpg: Signature made Wed 09 Oct 2019 12:50:15 BST; gpg: I'm not sure what it means by "failed to gpg" in this context, seeing as it correctly decrypts my password via gpg and the sends it via mstmp. And to be clear, I'm definitely not attempting to PGP sign or encrypt the e-mail either... Is it expecting some return value from the gpg (or sendmail/msmtp) command to confirm all is OK, and is perhaps not getting that value? I'm using this: passwordeval gpg2 --no-tty -q -d ~/.mail/passwords/gmail-main.gpg And I've also used/tried: passwordeval "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mail/passwords/gmail-main.gpg" Both variants worked perfectly from the point of view of actually decrypting the password and sending the e-mail, so there doesn't seem to be a difference between the two in practice. Do I need another switch to gpg in order to generate a return value to satisfy emacs? Thanks Aren.