Ticket #1484585 (closed Bugs: invalid)

Opened 16 months ago

Last modified 16 months ago

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".

Change History

Changed 16 months ago by thomasb

  • status changed from new to closed
  • resolution set to invalid
  • milestone deleted

"ISO8859-1" is obviously wrong. If this is not a typo and your messages come up with this charset specification you should call the sender (mailer) of the message. Don't expect RoundCube to handle all mistyped mails correctly. This is why there are standards.

Note: See TracTickets for help on using tickets.