[ mailman-Bugs-1658920 ] charset proble,

SourceForge.net noreply at sourceforge.net
Mon Apr 2 15:30:39 CEST 2007


Bugs item #1658920, was opened at 2007-02-13 13:06
Message generated for change (Comment added) made by dudeua
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1658920&group_id=103

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Web/CGI
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dudeua (dudeua)
Assigned to: Mark Sapiro (msapiro)
Summary: charset proble,

Initial Comment:
Hello, I need help.
I have mailman 2.1.9 .... if I  receive mail in charset, different
that koi8, than mailman in admins area shows this mail in
"quoted-printable" charset ...
But after approving this email,  via web-interface email shows with
correct charset.
How to fix charset?

----------------------------------------------------------------------

>Comment By: dudeua (dudeua)
Date: 2007-04-02 13:30

Message:
Logged In: YES 
user_id=1718234
Originator: YES

Hi msapiro,
Thanks for your patch! all work fine. but today i meet ne problem.
When mesasge comes with this headers:
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: quoted-printable
All fine.

But when message is in this encoding:
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: 8bit

it's body is ugly.

Please advice me ...

Thanks!

----------------------------------------------------------------------

Comment By: Mark Sapiro (msapiro)
Date: 2007-02-13 18:53

Message:
Logged In: YES 
user_id=1123998
Originator: NO

The screenshot is unnecessary. I understood exactly what the issue was
from your original description.

I know you only see the problem in the "message excerpt" in the admindb
message detail. I tried to explain that the reason for this is that this
excerpt is not decoded. It would be possible to patch
Mailman/Cgi/admindb.py with the attached patch to decode this "message
excerpt" before displaying it, but then you would have the issue that the
characters in the box in your screenshot would be Windows CP1251 characters
which would probably still be garbled when displayed in the character set
of the rest of the page.

Also, my suggestion to set admin_immed_notify to 1 was not intended to
'correct' this display. It causes this message to be also sent to you in an
email so that if it is necessary for you to see the message text in order
to decide what action to take with the message, you can see the text in the
email notice.
File Added: admindb.patch.txt

----------------------------------------------------------------------

Comment By: dudeua (dudeua)
Date: 2007-02-13 16:55

Message:
Logged In: YES 
user_id=1718234
Originator: YES

set admin_immed_notify at /mailman/bun/config ? It already setted to 1;
Pleasee see attacged screenshot.
I can't use MUA (mail agent), because I meet problem with encoding only at
admin area.

Thanks for help.


File Added: ggg.jpg

----------------------------------------------------------------------

Comment By: Mark Sapiro (msapiro)
Date: 2007-02-13 16:36

Message:
Logged In: YES 
user_id=1123998
Originator: NO

Quoted-printable is not a character set. It is an encoding. That is, it is
a way of representing data which contains non-printable, us-ascii
characters using only the us-ascii character set as required by RFC2822 for
email messages.

The issue here is that encoded message bodies are not decoded for display
in the admindb message detail. This may change in the future, but then
there _will_ be character set and content-type issues. These are more
complicated as in general, different message parts may have different
character sets and may not even be text.

Currently, if you really need to see the decoded text, you need to set
admin_immed_notify to Yes so you get an email notice of the held message
and use an MUA (mail client) that shows you the decoded message in the
notice.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1658920&group_id=103


More information about the Mailman-coders mailing list