Fw: [imp] ask help about imp decoding problem

Zhang Bo boozhang at sdb.ac.cn
Thu Apr 15 01:10:22 PDT 2004


Hi, Michael,

Where should I hack the code of horde-HEAD or imp-HEAD to 
let the not-standard emails display chinese correctly? And how ? Can you give me 
some clue?

I think imp's mailbox.php should one, but there must be a lot of others should 
be hacked. 

> The problem is that IMP 3.x is *broken* with respect to charsets (or, 
> at least,
> not very smart about charset handling).
> 
> The correct behavior in the case you presented is to display the characters in
> 'us-ascii' encoding because, according to the RFCs, if a charset parameter is
> not given in the Content-Type header, us-ascii MUST be used.  If this renders
> the message unreadable, that is unfortunate.  However, this is because IMP is
> working *correctly* - that messsage should *NOT* be readable in Chinese if
> missing that charset parameter.
> 
> The old versions of IMP would simply print the content of the message without
> any regard to what charset the user was using.  In your case, you most likely
> are using a Chinese browser with a Chinese charset so the data 
> outputted to the
> screen was interpreted by the browser as chinese characters and they were
> displayed to you that way.  This is not the correct behavior (for 
> example, if I
> view those characters on my English browser, they come through as 
> garbage).  It
> just happens to be that the character set of the message and the character set
> of your browser happen to be the same.  So IMP 3.1 got "lucky" in this case -
> but that still doesn't make it correct behavior.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I know what you mean, but there are so many not-standard mail server which 
send not standard emails in China and other countries.

regards,

Zhang

> 
> michael
> 
> ______________________________________________
> Michael Slusarz [slusarz at bigworm.colorado.edu]
> The University of Colorado at Boulder
> -- 
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
> 
> 


More information about the imp mailing list