info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mime encoded subject is not decoded correctly


From: Reiner Steib
Subject: Re: mime encoded subject is not decoded correctly
Date: Tue, 19 Oct 2004 17:59:10 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

On Tue, Oct 19 2004, Uwe Brauer wrote:

> In my usual setting[1] 
> I receive msg with the following subject header
>
>  
> =?Cp1252?B?Q09NVU5JQ0FETyBBVVRPTcFUSUNPIEQ=?==?Cp1252?B?RSBBUEVSVFVSQSBERSBJTkNJREVOQ0lB?=
>
> In Mozilla such a header is displayed as
> COMUNICADO AUTOMÁTICO DE APERTURA DE INCIDENCIA
>
> So it looks  to me that  the decode-mime function  in subject[2] does not
> work correctly for me in no mule.
>
> Is this correct?

IIRC, cp1252 is no valid mime-charset.  You can let Gnus treat it like
windows-1252.  Probably your XEmacs doesn't know windows-1252, so you
may be more lucky with iso-8859-1.

The following mapping works in Emacs:

;; cp1252 is no valid mime-charset, but it's used in the wild (should be
;; windows-1252).  Let's treat it as windows-1252 or iso-8859-1.
(unless (mm-coding-system-p 'cp1252)
  (if (mm-coding-system-p 'windows-1252)
      (add-to-list 'mm-charset-synonym-alist '(cp1252 . windows-1252))
    (add-to-list 'mm-charset-synonym-alist '(cp1252 . iso-8859-1))))

,----
| (require 'rfc2047)
| (with-temp-buffer
|   (insert "Subject: 
=?Cp1252?B?Q09NVU5JQ0FETyBBVVRPTcFUSUNPIEQ=?==?Cp1252?B?RSBBUEVSVFVSQSBERSBJTkNJREVOQ0lB?=")
|   (rfc2047-decode-region (point-min) (point-max))
|   (buffer-string))
| 
| ==> "Subject: COMUNICADO AUTOMÁTICO DE APERTURA DE INCIDENCIA"
`----

BTW, is this a silly virus waring by a broken mailer?

> Footnotes: 
> [1]  it does however for vm
> [2]  XEmacs 21.4.15 no mule gnus 5.10.6

I don't know about vm, maybe they have a similar charset mapping by
default.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]