GNU bug report logs - #29427
Problem sending emails in message-mode after restart

Previous Next

Package: emacs;

Reported by: Emmanuel Boudreault <emmanuel.boudreault <at> polymtl.ca>

Date: Fri, 24 Nov 2017 17:35:02 UTC

Severity: normal

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Emmanuel Boudreault <emmanuel.boudreault <at> polymtl.ca>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>, Eric Abrahamsen <eric <at> ericabrahamsen.net>
Cc: 29427 <at> debbugs.gnu.org
Subject: bug#29427: Problem sending emails in message-mode after restart
Date: Sun, 26 Nov 2017 20:33:51 +0100
> After restarting emacs, message-mode tries to incorrectly guess the
> 'From' field of my e-mail even though it is already present.

I have found a workaround. When emacs calls sendmail, it passes along a
'-f' argument with a badly formed from address and that is my problem.
The from address is obtained using the 'message-sendmail-envelope-from'
function in 'message.el'..

I found a nice comment:

```
;; Always specify who from,
;; since some systems have broken sendmails.
;; But some systems are more broken with -f, so
;; we'll let users override this.
(and (null message-sendmail-f-is-evil)
  (list "-f" (message-sendmail-envelope-from)))
```

By setting 'message-sendmail-f-is-evil', I can bypass this bit of code
and everything works as expected. However, this is just a workaround
and doesn't correct the fact that emacs is reading the From field
incorrectly.

> Emmanuel - I am forwarding your email, which follows my
> signature, to the bug report's address.

Thank you, I forgot to hit reply all.


Cheers,
Emmanuel




This bug report was last modified 5 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.