GNU bug report logs -
#19054
25.0.50; Wrong envelope-from in report-emacs-bug
Previous Next
Reported by: pok <at> netfonds.no (Peder O. Klingenberg)
Date: Fri, 14 Nov 2014 16:46:01 UTC
Severity: normal
Tags: fixed
Found in version 25.0.50
Fixed in version 24.5
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19054 in the body.
You can then email your comments to 19054 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19054
; Package
emacs
.
(Fri, 14 Nov 2014 16:46:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
pok <at> netfonds.no (Peder O. Klingenberg)
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 14 Nov 2014 16:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
(Creating a bug report from a mail thread on emacs-devel to keep it
alive. I probably should have done this as a bug report originally.
Original thread on http://permalink.gmane.org/gmane.emacs.devel/175920)
I wrote:
> Earlier today I was bitten by something that has irritated be before as
> well. When reporting bugs from an "emacs -Q", emacs doesn't know my
> email address. No problem, I can edit the From: header.
>
> However, I like to use my local sendmail as transport, because I have
> already told that how and where to forward my mail, and it seems like a
> perfectly good option. But message.el then decides to make up its own
> envelope-from, regardless of From: header. That makes the mail bounce.
>
> Attached is a patch to emacsbug.el that checks if what message.el would
> do results in a bogus address, and if so, defaults to the From: header
> instead.
[emacsbug.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
Eli Zaretskii replied with a concern:
>> +;; It's the default mail mode, so it seems OK to use its features.
>> +(autoload 'message-bogus-recipient-p "message")
>> +(autoload 'message-make-address "message")
>> +(defvar message-send-mail-function)
>> +(defvar message-sendmail-envelope-from)
>
> What if the user overrides that default, and uses a different mail
> mode?
To which I replied:
> Then I guess that user will have some unused functions loaded, as well
> as some variables defined that she has no use for? I was basically just
> cargo-culting the existing code.
>
> Existing code in emacsbug.el has
>
> ;; It's the default mail mode, so it seems OK to use its features.
> (autoload 'message-bogus-recipient-p "message")
> (defvar message-send-mail-function)
>
> I just added one more function and one more variable, and moved the
> whole bunch, including comment, earlier in the file, because I used
> those functions earlier in the file and thought it logical to place the
> definitions before the uses.
>
> Autoload of one function causes the entire file to be loaded, does it
> not? So my additions are more for documentation purposes than any
> actual functional change.
Does anyone have any further thoughts? I consider existing behaviour a
bug, and I believe my patch fixes it in a relatively unobtrusive manner.
message.el is already autoloaded today, and my patch does not change
behaviour if the user has already told message.el how to determine
envelope-from, or if the guessed address would be sane.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19054
; Package
emacs
.
(Sat, 15 Nov 2014 15:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 19054 <at> debbugs.gnu.org (full text, mbox):
pok <at> netfonds.no (Peder O. Klingenberg) writes:
> (Creating a bug report from a mail thread on emacs-devel to keep it
> alive. I probably should have done this as a bug report originally.
> Original thread on http://permalink.gmane.org/gmane.emacs.devel/175920)
Thanks; applied to emacs-24 (and to the trunk after a while).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 15 Nov 2014 15:24:03 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.5, send any further explanations to
19054 <at> debbugs.gnu.org and pok <at> netfonds.no (Peder O. Klingenberg)
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 15 Nov 2014 15:24:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 14 Dec 2014 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 193 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.