View Issue Details

IDProjectCategoryView StatusLast Update
0003276SOGoWeb Mailpublic2015-07-23 14:24
Reporterjbahillo Assigned Toludovic  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platform[Server] LinuxOSUbuntuOS Version14.04 LTS
Product Version2.2.17 
Fixed in Version2.3.1 
Summary0003276: Webmail shows empty mails when they are encoded in GB2312
Description

Some e-mails' content doesn't get displayed in the web interface. The content is there when you press reply.

The mail is normally readable in an e-mail client (Geary, Thunderbird, Outlook).

Steps To Reproduce

create an email using encoding GB2312 and send it to one user.

Try to view that email on SOGo webmail.

Additional Information

Log shows:

sogod [28407]: <0x0x7fba72925e00[NSString]> Got invalid multibyte sequence. ToEncode: UCS-2LE FromEncode: GB2312.

TagsNo tags attached.

Activities

ludovic

ludovic

2015-07-08 11:19

administrator   ~0008714

Attach a sample mail to this ticket.

hydrandt

hydrandt

2015-07-09 02:49

reporter  

sogo-empty-mail.eml (18,100 bytes)
ludovic

ludovic

2015-07-23 14:24

administrator   ~0008765

That mail is utterly broken.

The byte sequence is not even entirely gb2312 in the mail - so iconv fails to convert it. In such cases, there's so much we can do... so we fallback to utf8 and then, latin1:

https://github.com/inverse-inc/sogo/commit/4b19e64071a3c8173a63714c633e9a94b76fd7e5

Issue History

Date Modified Username Field Change
2015-07-08 10:45 jbahillo New Issue
2015-07-08 11:19 ludovic Note Added: 0008714
2015-07-09 02:49 hydrandt File Added: sogo-empty-mail.eml
2015-07-23 14:24 ludovic Note Added: 0008765
2015-07-23 14:24 ludovic Status new => resolved
2015-07-23 14:24 ludovic Fixed in Version => 2.3.1
2015-07-23 14:24 ludovic Resolution open => fixed
2015-07-23 14:24 ludovic Assigned To => ludovic