GNU bug report logs -
#17488
24.3; mail-sendmail-undelimit-header doesn't respect mail-header-separator
Previous Next
Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>
Date: Wed, 14 May 2014 01:30:05 UTC
Severity: normal
Tags: fixed
Found in version 24.3
Done: Lars 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 17488 in the body.
You can then email your comments to 17488 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#17488
; Package
emacs
.
(Wed, 14 May 2014 01:30:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Katsumi Yamaoka <yamaoka <at> jpl.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 14 May 2014 01:30:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
This is probably a rare case, so I'm not sure if it's worth
fixing, though. If one sets `mail-header-separator' to
" ."
it causes a mail corruption. It is because `rfc822-goto-eoh'
doesn't respect `mail-header-separator' and the first line of
a message body, rather than the separator, is deleted.
`smtpmail-send-it' and `mailclient-send-it' use it by way of
`mail-sendmail-undelimit-header'. And `sendmail-send-it' uses
it by way of `mail-header-end'.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17488
; Package
emacs
.
(Sun, 15 Apr 2018 18:10:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 17488 <at> debbugs.gnu.org (full text, mbox):
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:
> This is probably a rare case, so I'm not sure if it's worth
> fixing, though. If one sets `mail-header-separator' to
>
> " ."
>
> it causes a mail corruption. It is because `rfc822-goto-eoh'
> doesn't respect `mail-header-separator' and the first line of
> a message body, rather than the separator, is deleted.
Hm... I think `rfc822-goto-eoh' does the right thing: It doesn't care
about `mail-header-separator', because that's a user setting for mail
composition buffers, not something that should be consulted after making
that buffer into an RFC2822 mail.
> `smtpmail-send-it' and `mailclient-send-it' use it by way of
> `mail-sendmail-undelimit-header'. And `sendmail-send-it' uses
> it by way of `mail-header-end'.
So `mail-sendmail-undelimit-header' should consult that variable, I
think, instead of using `rfc822-goto-eoh'?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17488
; Package
emacs
.
(Mon, 16 Apr 2018 02:30:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 17488 <at> debbugs.gnu.org (full text, mbox):
On Sun, 15 Apr 2018 20:09:45 +0200, Lars Ingebrigtsen wrote:
> Hm... I think `rfc822-goto-eoh' does the right thing: It doesn't care
> about `mail-header-separator', because that's a user setting for mail
> composition buffers, not something that should be consulted after making
> that buffer into an RFC2822 mail.
I see. It got obvious that `rfc822-goto-eoh' shouldn't respect
`mail-header-separator' after having understood what
`mail-sendmail-delimit-header' does --- it looks for *eoh* using
`rfc822-goto-eoh' and then inserts `mail-header-separator'. So,
it's a function that converts an RFC2822 mail into the one usable
in a mail composition buffer. Although there is no program that
uses `mail-sendmail-delimit-header' in Emacs.
>> `smtpmail-send-it' and `mailclient-send-it' use it by way of
>> `mail-sendmail-undelimit-header'. And `sendmail-send-it' uses
>> it by way of `mail-header-end'.
> So `mail-sendmail-undelimit-header' should consult that variable, I
> think, instead of using `rfc822-goto-eoh'?
I think it will work, but I changed my mind. That is,
`rfc822-goto-eoh' should be used with an RFC2822 mail, and a mail
composing software should replace the `mail-header-separator' with
an empty line before sending a mail to the `sendmail-function',
like Gnus does.
Regards,
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17488
; Package
emacs
.
(Mon, 16 Apr 2018 11:53:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 17488 <at> debbugs.gnu.org (full text, mbox):
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:
>> So `mail-sendmail-undelimit-header' should consult that variable, I
>> think, instead of using `rfc822-goto-eoh'?
>
> I think it will work, but I changed my mind. That is,
> `rfc822-goto-eoh' should be used with an RFC2822 mail, and a mail
> composing software should replace the `mail-header-separator' with
> an empty line before sending a mail to the `sendmail-function',
> like Gnus does.
Yes, they should, so `mail-sendmail-undelimit-header' will normally be a
function that does absolutely nothing (as it is today :-)). So it
should either be removed, or adjusted to do what it says it does (i.e.,
find the delimited and remove it). I'll do the latter, and we can
contemplate the former...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 16 Apr 2018 12:00:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
17488 <at> debbugs.gnu.org and Katsumi Yamaoka <yamaoka <at> jpl.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 16 Apr 2018 12:00:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17488
; Package
emacs
.
(Tue, 17 Apr 2018 06:27:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 17488 <at> debbugs.gnu.org (full text, mbox):
On Mon, 16 Apr 2018 13:42:02 -0400, Lars Ingebrigtsen wrote:
> branch: scratch/prop-search
> commit e1a0cbbcf8389c76f67048e69139b5b0adf2cf38
> Author: Lars Ingebrigtsen <larsi <at> gnus.org>
> Commit: Lars Ingebrigtsen <larsi <at> gnus.org>
> Make mail-sendmail-undelimit-header actually remove the delimiter
> * lisp/mail/sendmail.el (mail-sendmail-undelimit-header): Actually
> remove the mail header separator (bug#17488). In all the cases
> where this is called, the separator will probably already have
> been removed, so the only thing this does is place point at the
> end of the headers.
This change caused the following error:
Debugger entered--Lisp error: (search-failed "^--text follows this line--\n")
re-search-forward("^--text follows this line--\n")
mail-sendmail-undelimit-header()
smtpmail-send-it()
message-smtpmail-send-it()
So, I've added ``nil t'' to the re-search form. ;-)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17488
; Package
emacs
.
(Tue, 17 Apr 2018 11:47:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 17488 <at> debbugs.gnu.org (full text, mbox):
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:
> So, I've added ``nil t'' to the re-search form. ;-)
Thanks!
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 16 May 2018 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 31 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.