unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2015: 23.0.60; Rmail decodes messages incorrectly
@ 2009-01-24 11:29 ` Eli Zaretskii
  2009-02-07 18:45   ` bug#2015: marked as done (23.0.60; Rmail decodes messages incorrectly) Emacs bug Tracking System
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2009-01-24 11:29 UTC (permalink / raw)
  To: emacs-pretest-bug


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Rmail does not correctly decode quoted-printable messages.  For
example, a message that has these headers:

  Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed
  Content-Transfer-Encoding: quoted-printable

Shows a Windows-1252 character \226 as an octal escape, and says that
the buffer's encoding is undecided-unix.

In addition, Rmail before mbox merge would rewrite
Content-Transfer-Encoding header into "8-bit", when it decoded the
quoted-printable encoding, but the current Rmail does not.

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> C-u M-x r m a i l <return> ~ / d a <tab> 
m a i l . i <tab> <return> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> M-x 
r m a u <backspace> i l - s <tab> u <tab> <return> 
<C-next> C-g C-x o C-u 1 2 C-x ^ p C-x C-s p p n n 
n n p p p p n n n o d a <tab> x x <tab> x <backspace> 
<backspace> <backspace> X X X X . r m a i l <return> 
y e s <return> p o <return> <help-echo> <down-mouse-1> 
<help-echo> <drag-mouse-1> <help-echo> C-x C-s p p 
n n n C-x C-b C-x 4 b <return> <help-echo> <down-mouse-1> 
<help-echo> <drag-mouse-1> C-x o <help-echo> t <next> 
<next> <next> <down> <down> <down> <down> <down> <down> 
<down> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <left> <prior> <prior> 
<prior> <prior> <next> M-x r e p o <tab> r <tab> <
return>

Recent messages:
Type y, n, ! or SPC (the space bar): 
Quit
Wrote d:/usr/eli/data/mail.in
No following nondeleted message
No previous nondeleted message
Making completion list...
Added to d:/usr/eli/data/XXXX.rmail [2 times]
Wrote d:/usr/eli/data/mail.in
call-interactively: Beginning of buffer
Making completion list...






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#2015: 23.0.60; Rmail decodes messages incorrectly
@ 2009-01-31 15:37 Chong Yidong
  0 siblings, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2009-01-31 15:37 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 2015

> Rmail does not correctly decode quoted-printable messages.  For
> example, a message that has these headers:
>
>   Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes;
>   format=flowed
>   Content-Transfer-Encoding: quoted-printable
>
> Shows a Windows-1252 character \226 as an octal escape, and says that
> the buffer's encoding is undecided-unix.
>
> In addition, Rmail before mbox merge would rewrite
> Content-Transfer-Encoding header into "8-bit", when it decoded the
> quoted-printable encoding, but the current Rmail does not.

IIUC, the new Rmail decodes quoted-printable messages during message
display, leaving the original message unchanged in the Rmail file.
That's why it does not change Content-Transfer-Encoding to "8bit".

I don't see why Rmail would fail to correctly decode a message with the
headers you provided.  Here's a shot in the dark: if you add the line

  (setq last-coding-system-used nil)

to line 2564 of rmail.el, just before the call to rmail-decode-region,
is there any improvement?






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#2015: marked as done (23.0.60; Rmail decodes messages  incorrectly)
  2009-01-24 11:29 ` bug#2015: 23.0.60; Rmail decodes messages incorrectly Eli Zaretskii
@ 2009-02-07 18:45   ` Emacs bug Tracking System
  0 siblings, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-02-07 18:45 UTC (permalink / raw)
  To: Eli Zaretskii

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]


Your message dated Sat, 07 Feb 2009 20:36:54 +0200
with message-id <u3aeqt7p5.fsf@gnu.org>
and subject line Re: bug#2015: 23.0.60; Rmail decodes messages incorrectly
has caused the Emacs bug report #2015,
regarding 23.0.60; Rmail decodes messages incorrectly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
2015: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2015
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5425 bytes --]

From: Eli Zaretskii <eliz@gnu.org>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; Rmail decodes messages incorrectly
Date: Sat, 24 Jan 2009 13:29:03 +0200
Message-ID: <umydht01s.fsf@gnu.org>


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Rmail does not correctly decode quoted-printable messages.  For
example, a message that has these headers:

  Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed
  Content-Transfer-Encoding: quoted-printable

Shows a Windows-1252 character \226 as an octal escape, and says that
the buffer's encoding is undecided-unix.

In addition, Rmail before mbox merge would rewrite
Content-Transfer-Encoding header into "8-bit", when it decoded the
quoted-printable encoding, but the current Rmail does not.

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> C-u M-x r m a i l <return> ~ / d a <tab> 
m a i l . i <tab> <return> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> M-x 
r m a u <backspace> i l - s <tab> u <tab> <return> 
<C-next> C-g C-x o C-u 1 2 C-x ^ p C-x C-s p p n n 
n n p p p p n n n o d a <tab> x x <tab> x <backspace> 
<backspace> <backspace> X X X X . r m a i l <return> 
y e s <return> p o <return> <help-echo> <down-mouse-1> 
<help-echo> <drag-mouse-1> <help-echo> C-x C-s p p 
n n n C-x C-b C-x 4 b <return> <help-echo> <down-mouse-1> 
<help-echo> <drag-mouse-1> C-x o <help-echo> t <next> 
<next> <next> <down> <down> <down> <down> <down> <down> 
<down> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <left> <prior> <prior> 
<prior> <prior> <next> M-x r e p o <tab> r <tab> <
return>

Recent messages:
Type y, n, ! or SPC (the space bar): 
Quit
Wrote d:/usr/eli/data/mail.in
No following nondeleted message
No previous nondeleted message
Making completion list...
Added to d:/usr/eli/data/XXXX.rmail [2 times]
Wrote d:/usr/eli/data/mail.in
call-interactively: Beginning of buffer
Making completion list...



[-- Attachment #3: Type: message/rfc822, Size: 1738 bytes --]

From: Eli Zaretskii <eliz@gnu.org>
To: 2015-done@emacsbugs.donarmstrong.com
Subject: Re: bug#2015: 23.0.60; Rmail decodes messages incorrectly
Date: Sat, 07 Feb 2009 20:36:54 +0200
Message-ID: <u3aeqt7p5.fsf@gnu.org>

Fixed by this change:

    2009-02-07  Eli Zaretskii  <eliz@gnu.org>

	    * mail/rmail.el (rmail): Bind coding-system-for-read to
	    no-conversion before calling find-file-noselect.  (Bug#2015)

and by several other related changes installed during the last two
weeks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-07 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <u3aeqt7p5.fsf@gnu.org>
2009-01-24 11:29 ` bug#2015: 23.0.60; Rmail decodes messages incorrectly Eli Zaretskii
2009-02-07 18:45   ` bug#2015: marked as done (23.0.60; Rmail decodes messages incorrectly) Emacs bug Tracking System
2009-01-31 15:37 bug#2015: 23.0.60; Rmail decodes messages incorrectly Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).