GNU bug report logs -
#29427
Problem sending emails in message-mode after restart
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Emmanuel - I am forwarding your email, which follows my
signature, to the bug report's address. Unless sending a
private message, in the future please include
<29427 <at> debbugs.gnu.org> as a recipient.
Eric - I lack experience in mailing list etiquette, so if
forwarding wasn't the best mechanism for me to use here
please let me know what to do in the future.
Thanks,
--
Basil
[Message part 2 (message/rfc822, inline)]
>>> When I first send an e-mail in emacs, 'send-mail-function'
>>> isn't defined [...]
>>
>> I'm not sure how `send-mail-function' comes into it, and am a bit
>> confused by your report: you say when you first send an email in emacs,
>> it isn't set, but later say when you restart emacs, it is defined.
Once I send an e-mail from 'sendmail-query-once', 'send-mail-function'
is set to 'sendmail-send-it' in my config file by the
'sendmail-query-once' process. Things then work until I restart emacs.
After restarting emacs, message-mode tries to incorrectly guess the
'From' field of my e-mail even though it is already present.
> Actually Emmanuel is saying the opposite, namely that
> `send-mail-function' is somehow undefined until restarting
> Emacs. My issue with this is that `send-mail-function'
> should always be defined as either `sendmail-send-it' or
> `sendmail-query-once' when starting Emacs with the -Q flag,
> in all versions of Emacs until at least as far back as 23.
> Perhaps some custom configuration code or package is
> misbehaving?
I'm sorry, I misspoke, I meant that I'm not defining
'send-mail-function' in my config file. I just checked and it is indeed
set to 'sendmail-query-once' when not set in my config file.
>> Anyway, if you're using something based on message-mode, you should
>> probably just set `message-send-mail-function' directly.
>
> +1
So this is my problem, when 'send-mail-function' is set to
'sendmail-send-it' or when 'message-send-mail-function' is set to
'message-send-mail-with-sendmail', somewhere in the message mode, the
code tries to guess my From and sets it incorrectly event though there
is already a valid from in the message.
To get things to work, I have to remove those settings set by
'sendmail-query-once' from my config file and restart emacs. Things then
work for that session.
Sorry for my bad initial explanation.
Thanks,
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.