Ticket #1484585 (closed Bugs: invalid)
small MB charset selection encoding bug
| Reported by: | karmak | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | Core functionality | Version: | 0.1-rc1 |
| Severity: | normal | Keywords: | mb |
| Cc: |
Description
Hi. On Ubuntu Feisty server, courier-imap 4.1.1.20060828-5ubuntu1, PHP 5.2.1-0ubuntu1.4, roundcube 0.1rc1. When loading my mailbox, i can see some warnings :
Warning: mb_convert_encoding() [function.mb-convert-encoding]: Illegal character encoding specified in /var/lib/roundcube-webmail/program/include/main.inc on line 924
debugging, I found that adding :
$from = $from=="ISO8859-1" ? "ISO-8859-1": $from;
on line 922 solves the problem. I don't know where this problem can come from (server ? mailbox ? originating client ? MB_* not clever enough ?), but i'll be happy to help find it. This happens only for 2 messages in the total of 40 in my mbox. All other messages are UTF-8 or already "ISO-8859-1".
