A NOTE has been added to this issue.
======================================================================
http://dbmail.org/mantis/view.php?id=538
======================================================================
Reported By: maximP
Assigned To:
======================================================================
Project: DBMail
Issue ID: 538
Category: general delivery
Reproducibility: sometimes
Severity: minor
Priority: normal
Status: new
target:
======================================================================
Date Submitted: 15-Mar-07 17:06 CET
Last Modified: 15-Mar-07 19:59 CET
======================================================================
Summary: incorrect field cache values for messages containing
8-bit headers
Description:
It's the supplement to Bug 499 resolving.
While processing wrong messages with not encoded (8-bit) headers, such
headers are obtained by gmime functions not capable to treat them
(g_mime_message_get_subject, etc.) and passed to gmime functions expecting
encoded or utf-8 headers (internet_address_parse_string,
g_mime_utils_header_decode_text, etc.), so abracadabra is inserted in
{subject,from}field DB tables. Proposed patch solves this by converting
headers to utf-8 and properly encoded strings for internal processing and
converting to DB encoding before inserting into DB, so field cache tables
could be used in IMAP message searching later (though such operation is
not yet usable for non-latin strings, since IMAP search arguments aren't
converted to DB encoding before comparing to DB field cache values).
======================================================================
----------------------------------------------------------------------
AntonZ - 15-Mar-07 19:59
----------------------------------------------------------------------
IMAP search required for webmail. Encode headers in you patch destroy this
future.
abracadabra inserted on incorrect detect charset of field (for example
koi8-r pass as windows-1251 before encode to utf8).
My patch decode header fields before insert to cache.
Issue History
Date Modified Username Field Change
======================================================================
15-Mar-07 17:06 maximP New Issue
15-Mar-07 17:06 maximP File Added: dbmail.WrongHead.patch
15-Mar-07 19:59 AntonZ File Added: decode_cache_fields.patch
15-Mar-07 19:59 AntonZ Note Added: 0001901
======================================================================
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev