unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Aren Tyr <aren.tyr@gmail.com>
To: Tomas Nordin <tomasn@posteo.net>
Cc: notmuch@notmuchmail.org
Subject: Re: notmuch-mua-send + msmtp IS sending perfectly... but Emacs says it failed! Why?!
Date: Sat, 26 Oct 2019 23:07:32 +0100	[thread overview]
Message-ID: <CALZRiWs1FHf8GnE3zAWAFtXD4Kb=08NfgYRxb2chRDcX_hddOw@mail.gmail.com> (raw)
In-Reply-To: <874kzvo317.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me>

> 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.

      reply	other threads:[~2019-10-26 22:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-25 15:17 notmuch-mua-send + msmtp IS sending perfectly... but Emacs says it failed! Why?! Aren Tyr
2019-10-26 15:17 ` Tomi Ollila
2019-10-26 17:00 ` Tomas Nordin
2019-10-26 22:07   ` Aren Tyr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALZRiWs1FHf8GnE3zAWAFtXD4Kb=08NfgYRxb2chRDcX_hddOw@mail.gmail.com' \
    --to=aren.tyr@gmail.com \
    --cc=notmuch@notmuchmail.org \
    --cc=tomasn@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).