From: Gregor Zattler <telegraph@gmx.net>
To: notmuch <notmuch@notmuchmail.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: [BUG] notmuch-emacs: spoils sendmail -f with emacs 27 commit 3a59cc84069376802ba8fd731b524d78db58262c and later
Date: Sun, 01 Dec 2019 18:10:59 +0100 [thread overview]
Message-ID: <87wobggee4.fsf@len.workgroup> (raw)
[-- Attachment #1: Type: text/plain, Size: 2890 bytes --]
[@Stefan: FYI]
Dear notmuch developers,
I use notmuch-emacs configured with
(setq mail-specify-envelope-from t)
(setq mail-envelope-from 'header)
(setq send-mail-function 'sendmail-send-it)
this should/used to invoke sendmail (in my case exim4) with the email
address given in the From: header of the message buffer as
argument to sendmails -f option.
Since emacs 27 commit 3a59cc84069376802ba8fd731b524d78db58262c
3a59cc84069376802ba8fd731b524d78db58262c
Author: Stefan Monnier <monnier@iro.umontreal.ca>
AuthorDate: Tue Jul 30 16:37:01 2019 -0400
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
CommitDate: Tue Jul 30 16:37:01 2019 -0400
Parent: add146f09f * lisp/bindings.el (mode-line-defining-kbd-macro): New defvar.
Contained: master
Follows: emacs-26.1 (6691)
* lisp/gnus/message.el: Reduce redundancy with send-mail-function
(message-send-mail-function) <function>: Remove `local-library` tests
for libs distributed with Emacs.
(message-use-send-mail-function): New function.
(message-default-send-mail-function): Default to it, and remove cases
already handled by it.
(message--default-send-mail-function): New function.
(message-send-mail-function) <variable>: Use it as new default.
(message-sendmail-f-is-evil): Obey mail-specify-envelope-from if available.
(message-check, message-with-reply-buffer): Use `declare`.
(message-smtpmail-send-it): smtpmail accepts mail-header-separator,
so simplify and declare obsolete.
(message-send-mail-with-mailclient): Declare obsolete.
(message-check-news-body-syntax): Don't presume that the checksum is
a fixnum.
this actually invokes sendmail -f with an address derived from the
EMAIL environment variable.
It took me some time to understand, that there is no problem with
compose-mail/message-send-and-exit which are bound to ^X m and ^C
^C respectively within a barely configured emacs which I used for
testing.
If instead notmuch is loaded compose-mail/message-send-and-exit
and notmuch-mua-new-mail/notmuch-mua-send behave different.
With this command (with test.el as attached):
~/src/emacs/src/emacs -Q -nw -l /tmp/test.el
compose-mail/message-send-and-exit rightly show
-f example@example.org in the file /tmp/result (and then there is
an error because the notmuch commands are not known).
While this command
~/src/emacs/src/emacs -Q -nw -L ~/src/notmuch/emacs/ --eval "(require 'notmuch)" -f notmuch -l /tmp/test.el
wrongly show some other value for -f, depending on your EMAIL
environment variable, for both compose-mail/message-send-and-exit
and notmuch-mua-new-mail/notmuch-mua-send.
I read the code but I have no idea why and how to debug this.
Ciao; Gregor
--
-... --- .-. . -.. ..--.. ...-.-
[-- Attachment #2: test.el --]
[-- Type: application/emacs-lisp, Size: 941 bytes --]
next reply other threads:[~2019-12-01 17:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-01 17:10 Gregor Zattler [this message]
2019-12-03 18:43 ` [BUG] notmuch-emacs: spoils sendmail -f with emacs 27 commit 3a59cc84069376802ba8fd731b524d78db58262c and later David Edmondson
2019-12-03 19:15 ` Gregor Zattler
2019-12-03 19:42 ` David Edmondson
2019-12-04 12:03 ` David Edmondson
2019-12-03 20:39 ` Stefan Monnier
2019-12-03 22:22 ` David Edmondson
2019-12-03 23:10 ` Stefan Monnier
2019-12-04 18:13 ` Gregor Zattler
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=87wobggee4.fsf@len.workgroup \
--to=telegraph@gmx.net \
--cc=monnier@iro.umontreal.ca \
--cc=notmuch@notmuchmail.org \
/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).