View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003215 | SOGo | Web Mail | public | 2015-05-19 13:28 | 2016-04-21 20:42 |
Reporter | JEF | Assigned To | ludovic | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | suspended | ||
Platform | [Server] Linux | OS | Ubuntu | OS Version | 14.04 LTS |
Product Version | 2.2.15 | ||||
Summary | 0003215: MIME decoding not reflect RFC 2047 | ||||
Description | This part of RFC 2047 is not working is SOGo: "An encoded-word may not be more than 75 characters long, including charset, encoding, encoded text, and delimiters. If it is desirable to encode more text than will fit in an encoded-word of 75 characters, multiple encoded-words (separated by CRLF SPACE) may be used." SOGo itself place all text of encoded subject and name of attachments to one line in form "=?charset?encoding?encoded text?=", as is in NSData+Mail.m. This is not by RFC, indeed works. What is not working correctly is other way. When i send mail with MIME separated items to 75 chars separated by CRLF + SPACE (in case of Widnows Live Mail or Outlook it is CRLF + TAB), like this: Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; SOGo Webmail includes delimiter character (SPACE or TAB) in file name, like "The quick brown fox jumps over t_he lazy dog ? The quick brown fox jumps over the lazy dog.xlsx". Firefox converts TAB to "", Chrome converts TAB to "%09". Sometimes it brokes file extension and users can't open affected file. When subject is broken, it doesn't look good. | ||||
Steps To Reproduce | Use mail client which encode MIME by RFC 2047 (Windows Live Mail, Outlook Express). Send message with any character encoding (UTF-8) in Subject or Attachment for enabling MIME encoding in mail header. Length of Subject or Attachment name must be very long for slit into more lines. Then open this message in SOGo and look at Subject or try to save Attachment for additional spaces or tabs. | ||||
Tags | No tags attached. | ||||
Found problem in SOPE 2.2.15 (same is in 2.2.17). Here is quick fix, but not 100% in all cases. In file "SOPE/sope-mime/NGMail/NSData+MimeQP.m" comment (or delete) whole ELSE statement on line 119 - 121. Here is edited part from line 112:
/ else { This means, that any character just before "=" outside MIME encoded parts will be discarted. This can affect mails, where is used mixed encoding in subject or attachment name, but it's not so often. Fixed source file "NSData+MimeQP.m" and compiled "libNGMime.so.4.9.3" on Ubuntu 14.04LTS can be downloaded here http://users.prf.cuni.cz/tester/sope/libNGMime.so.4.9.3.fix.zip . |
|
I don't have this issue. Can you please retest with a nightly build? |
|
Tested on Version 2.3.0 (@shiva.inverse 201506020221). Problem still persists. It's highlighted on attached images. When sending mail from SOGo, it don't split lines of Subject and Filename in header, as required by RFC. In consequency, when MIME encoded subject/filename is on one line, it looks like there is no problem. |
|
If possible please attach a test mail. |
|
I can confirm the bug. I've attached an erroneous e-mail. |
|
This has been fixed a little while ago. Please retest and reopen if necessary. I cannot reproduce it on the latest v3 nightly builds. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2015-05-19 13:28 | JEF | New Issue | |
2015-05-28 13:13 | JEF | Note Added: 0008542 | |
2015-05-28 18:34 | ludovic | Note Added: 0008545 | |
2015-06-02 08:52 | JEF | Note Added: 0008553 | |
2015-06-02 08:59 | JEF | File Added: Sogo1.png | |
2015-06-02 09:05 | JEF | File Added: Sogo2.png | |
2015-06-02 09:07 | JEF | File Added: Sogo3.png | |
2015-06-02 09:09 | JEF | Note Edited: 0008553 | |
2015-10-23 19:02 | ludovic | Note Added: 0009038 | |
2015-12-15 10:36 | daevidt | File Added: Messages.zip | |
2015-12-15 10:37 | daevidt | Note Added: 0009209 | |
2016-04-21 20:42 | ludovic | Note Added: 0010004 | |
2016-04-21 20:42 | ludovic | Status | new => resolved |
2016-04-21 20:42 | ludovic | Resolution | open => suspended |
2016-04-21 20:42 | ludovic | Assigned To | => ludovic |