I am ready to agree with you, but how do you explain the fact that the subject is displayed properly when viewing the message and also in the Dovecot rawlogs ?

It's only in the mailbox.php script that it's causing errors.

I actually found a bit more about this as well in this file:
imp/lib/IMAP/MessageCache.php

Right around this comment:
// There should not be any 8bit characters here.  If there
// is, we either need to convert from the default charset
// or replace with question marks.

I posted all the details in this bug:

http://bugs.horde.org/ticket/9020



Quoting Michael M Slusarz <[email protected]>:

Quoting [email protected]:

The issue of the '?' characters has now also been solved. Not sure if it's just our systems or everyone out there that has this problem but we made the following change in imp/mailbox.php

changed:
$msg['subject'] = $imp_ui->getSubject($ob->subject);

to:
$msg['subject'] = utf8_encode($imp_ui->getSubject($ob->subject));

Doing this, also no longer requires the modification to NLS::getCharset() I mentioned earlier since the subject effectively is UTF8 now and the function works properly.

That's not correct. It may work for certain messages, but that is luck, not because this is the proper solution. It sounds like the subject line is simply not encoded correctly - thus, when converting to the server charset (UTF-8), characters are being mis-converted. But this is an issue with the mail message itself, not IMP.

michael

--
___________________________________
Michael Slusarz [[email protected]]


--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]




--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]

Reply via email to