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: Uwe Brauer
Subject: Re: mime encoded subject is not decoded correctly
Date: Tue, 19 Oct 2004 18:31:34 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux)

>>>>> "Reiner" == Reiner Steib <reinersteib+from-uce@imap.cc> writes:

    Reiner> 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?

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

    Reiner> The following mapping works in Emacs:

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


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


Hm, again my lisp knowledge is to limited, but precisely are I
supposed to do just putting the above unless lines, in gnus (this did
not work), add some appropriate lines in the relevant hooks?


Sorry 
    Reiner> BTW, is this a silly virus waring by a broken mailer?
NO, this is our windows orientated system dealing with all sort of
administration stuff concerning our net in the university. In order to
ask a question you receive a number then you ask etc.....


reply via email to

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