A NOTE has been added to this issue. ====================================================================== http://dbmail.org/mantis/view.php?id=777 ====================================================================== Reported By: idk Assigned To: ====================================================================== Project: DBMail Issue ID: 777 Category: IMAP daemon Reproducibility: always Severity: minor Priority: normal Status: new target: ====================================================================== Date Submitted: 06-Mar-09 02:14 CET Last Modified: 01-Jul-09 16:05 CEST ====================================================================== Summary: wrong mime conversion in BODY[HEADER.FIELDS] Description: I used a 2.2.7-RC4 for a long time. Recently I have update from the Fedora repository to 2.2.9 first, then 2.2.11. Now I have tried latest 2.2 branch (because stable source for 2.2.11 has a compile bug - crypt). All three versions has the same bug.
All messages arrived before the update have a format [[email protected]] or [Real Name <[email protected]>] in a fromfield, but after the update, the second format is ["Real Name" <[email protected]>] (a real name is quoted), which can be okay. If the Real Name contains non-ascii characters, response to IMAP FETCH (BODY[HEADER.FIELDS (From)]) is like this: * 18 FETCH (UID 1445906 BODY[HEADER.FIELDS (from)] {58} from: "Accent =?iso-8859-1?b?QeEi?= <[email protected]> ) (the Real Name was [Accent Aa], where last character is "a" with an accent). The second quotation mark is encoded into mime string (you can decode it into [Aa"]). For example Squirrelmail shows ["Accent =?iso-8859-1?b?QeEi?= <[email protected]>] in the from field in a messages list ====================================================================== ---------------------------------------------------------------------- (0002806) idk (reporter) - 06-Mar-09 05:55 http://dbmail.org/mantis/view.php?id=777#c2806 ---------------------------------------------------------------------- I made an investigation. In a file dbmail-imapsession in a function _fetch_headers at line 1263 db_get_result(i,2) returns a correct value (in a native utf-8 coding), but call into a function dbmail_iconv_db_to_utf7 breaks it. This function is trivial and it forward call only into a mime function g_mime_utils_header_encode_text. * I (and all Fedora users) may have wrong mime lib * this mime function isn't perfect for email addresse's headers * removing quota marks from the db cache dbmail_headervalue (e.g. there is no quotas in dbmail_fromfield values) can solve the issue ---------------------------------------------------------------------- (0002828) idk (reporter) - 01-Jul-09 16:05 http://dbmail.org/mantis/view.php?id=777#c2828 ---------------------------------------------------------------------- bump... There is possible nobody has the same problem such as one I've described? Issue History Date Modified Username Field Change ====================================================================== 06-Mar-09 02:14 idk New Issue 06-Mar-09 05:55 idk Note Added: 0002806 01-Jul-09 16:05 idk Note Added: 0002828 ====================================================================== _______________________________________________ Dbmail-dev mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev
