[thunderbird_interface] Mail headers are not decoded (trunk)

Bug #365104 reported by Dukai Gábor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Hi!
Trunk version.
With the thunderbird_interface module the headers of the e-mails archived in openerp is not decoded from the rfcxxxx format.
Example:
The header: Vásárlási megbízás
Looks something like this in openerp: =?UTF-8?Q?V=C3=A1s=C3=A1rl=C3=A1si_megb=C3=ADz=C3=A1s_-_1?= =?UTF-8?Q?60?=

Easy to fix:
In thunderbird_interface/partner/partner.py:

from email.header import decode_header

    In thunderbird_mailcreate():
        dictcreate = dict(vals)
        dictcreate['title'] = decode_header(dictcreate['title'])[0][0]

Revision history for this message
Husen Daudi (husendaudi) wrote :

Hello Dukai,

This is the problem from thunderbird.
It seems like there is no proper encoding selected from view>character encoding menu in thunderbird.
Because description with the same string is working fine.

Regards,

Revision history for this message
Dukai Gábor (gdukai) wrote :

Thank you for checking this bug report.

This is not a thunderbird view related problem.
E-mail senders can send e-mail subject headers both in unicode characters or unicode characters mapped to rfcxxxx codes. It depends on the sender, not on thunderbird.
Probably your test e-mail subject was pure unicode.
I have sent the original e-mail to your primary address in launchpad to test it.

Revision history for this message
Husen Daudi (husendaudi) wrote :

Hello Dukai,

Fixed in trunk_extra_addons.
just update code and reinstall the thunderbird module.

Regards

Changed in openobject-addons:
status: New → Fix Released
Changed in openobject-addons:
status: Fix Released → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Berry,

Please recheck with the latest trunk version.

Thanks.

Changed in openobject-addons:
status: Confirmed → Fix Released
milestone: none → 6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.