GNU bug report logs -
#2017
23.0.60; C-c in Rmail re-encodes quoted-printable parts
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sat, 24 Jan 2009 12:05:05 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.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 2017 in the body.
You can then email your comments to 2017 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2017
; Package
emacs
.
(Sat, 24 Jan 2009 12:05:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 24 Jan 2009 12:05:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
In an Rmail buffer that holds a multi-part message with at least one
of the parts encoded in quoted-printable:
Type `e', then make a region around the body of the part that is
encoded in quoted-printable, and type:
M-: (mail-unquote-printable-region (mark) (point) nil nil t) RET
The marked part is decoded as expected. Now type `C-c', and watch
the Context-Type header be quoted-printable (e.g., "charset=utf-8"
becomes "charset=3Dutf-8"). Other `=' characters elsewhere in the
body of the partial message also become encoded in quoted-printable.
There are 2 bugs here: (1) Rmail should not re-encode the text in any
way, and (2) it should never touch the headers.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
d:/gnu/emacs/etc/DEBUG for instructions.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2009-01-24 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENU
value of $XMODIFIERS: nil
locale-coding-system: cp1255
default-enable-multibyte-characters: t
Major mode: RMAIL
Minor modes in effect:
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <down-mouse-1> <help-echo>
<drag-mouse-1> C-x 4 b <up> <M-right> <right> <M-right>
- <tab> <return> <help-echo> <down-mouse-1> <help-echo>
<mouse-movement> <drag-mouse-1> C-x o p <next> <prior>
C-x C-s <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <next> <prior> <next> <next>
<next> <next> <next> <next> <next> <next> <prior> <prior>
<prior> <prior> <prior> <prior> <prior> <prior> e <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <help-echo> C-SPC <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> M-: ( m a i l - u n q u o t e
- p r i n t a b l e - r e g i o n SPC ( m a r k ) S-SPC
( p o i n t ) S-SPC n i l SPC n i l SPC t ) <return>
C-c C-c M-x r m a i l - r e d e <tab> c <tab> <tab>
<C-left> <C-left> <delete> p C-e <tab> C-g <help-echo>
<help-echo> <help-echo> C-x C-s p p n n M-: <up> C-g
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> C-x k <return> C-u M-x <up> <up> <up> <return>
<up> <up> <up> <return> M-x <up> <up> <up> <return>
C-x o <help-echo> <down-mouse-1> <help-echo> <drag-mouse-1>
<help-echo> <help-echo> p p n n n p p p n n n p <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> e C-SPC <next>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <up> <down> C-x C-x C-x C-x M-:
( <up> <return> C-x C-x C-x C-x C-c C-c M-x <up> <up>
<up> <up> <down> <return>
Recent messages:
Mark set
t
Quit
Wrote d:/usr/eli/data/mail.in
Quit
Counting messages...done
Computing summary lines...done
No following nondeleted message
Editing: Type C-c C-c to return to Rmail, C-c C-] to abort
Mark set
t
bug reassigned from package `emacs' to `emacs,rmail'.
Request was from
Juanma Barranquero <lekktu <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 24 Jan 2009 13:10:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#2017
; Package
emacs,rmail
.
(Sun, 25 Jan 2009 18:25:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
rms <at> gnu.org
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Sun, 25 Jan 2009 18:25:04 GMT)
Full text and
rfc822 format available.
Message #12 received at 2017 <at> emacsbugs.donarmstrong.com (full text, mbox):
There are 2 bugs here: (1) Rmail should not re-encode the text in any
way, and (2) it should never touch the headers.
The code in rmail-cease-edit is meant to re-encode the entire message
in cases where rmail-show-message decoded the entire message. It should
not operate in the case you described.
(setq character-coding (mail-fetch-field "content-transfer-encoding")
is supposed to get the encoding specified by the message header for
the entire message, and it ought not notice anything specified
in/for individual mime parts.
When this fails for you, what value does character-coding get? If it
is non-nil, can you step thru mail-fetch-field and see how that
happened?
Is it that the header specifies this field
and the message also has mime parts?
If so, rmail-cease-edit needs to operate only on the "body"
and not on any mime parts.
In addition, rmail-cease-edit ought to check for editing done in
message headers, and install the edited headers into the message.
Ideally it should make a list of the headers initially shown
so that it can tell if the user deleted any headers and delete those
from the message.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 07 Feb 2009 15:35:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
bug acknowledged by developer.
(Sat, 07 Feb 2009 15:35:05 GMT)
Full text and
rfc822 format available.
Message #17 received at 2017-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> From: Richard M Stallman <rms <at> gnu.org>
> Date: Sun, 25 Jan 2009 13:14:38 -0500
>
> (setq character-coding (mail-fetch-field "content-transfer-encoding")
>
> is supposed to get the encoding specified by the message header for
> the entire message, and it ought not notice anything specified
> in/for individual mime parts.
>
> When this fails for you, what value does character-coding get? If it
> is non-nil, can you step thru mail-fetch-field and see how that
> happened?
The problem was that the Rmail buffer was narrowed to the entire
message, whereas mail-fetch-field is documented to assume that the
buffer is narrowed to just the headers. (Similar problems were with
calls to rmail-is-text-p and rmail-get-coding-system.) I fixed that
by narrowing to the headers' portion only.
> Is it that the header specifies this field
> and the message also has mime parts?
> If so, rmail-cease-edit needs to operate only on the "body"
> and not on any mime parts.
If the header specifies content-transfer-encoding, then Rmail will
decode the entire message body, including the MIME parts, by this
encoding. So it is correct to re-apply that encoding in
rmail-cease-edit to the whole body.
> In addition, rmail-cease-edit ought to check for editing done in
> message headers, and install the edited headers into the message.
> Ideally it should make a list of the headers initially shown
> so that it can tell if the user deleted any headers and delete those
> from the message.
It looks like rmail-cease-edit does not support editing the headers at
all at this time. But that is a separate problem; I will file a new
bug report for it.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sun, 08 Mar 2009 14:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.