Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1486616 closed Bugs (worksforme)

.docx attachments sent to any Gmail account get delivered as "noname" zip files

Reported by: geoffreymsilver Owned by:
Priority: 5 Milestone: 0.4-beta
Component: MIME parsing Version: 0.3.1
Severity: normal Keywords:
Cc: geoff@…

Description

Any .docx file I create with Office (Word) 2007 and send as an attachment in Roundcube 0.3.1 gets delivered to any Gmail account as a "zip" file called "noname". Sending the same file as an attachment using mutt from the same server gets delivered properly without issue. Successful and failed attachments included with this ticket.

There seems to be a similar PEAR bug at http://pear.php.net/bugs/bug.php?id=12628 which indicates this is related to an extra newline in the header.

Attachments (3)

noname (40.3 KB) - added by geoffreymsilver 3 years ago.
noname file gmail displays as a proxy for the .docx file sent
Midterm Notes.docx (40.3 KB) - added by geoffreymsilver 3 years ago.
the original .docx attachment
message.txt (55.1 KB) - added by geoffreymsilver 3 years ago.
source message, as saved by roundcube into my Sent mail folder

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by geoffreymsilver

noname file gmail displays as a proxy for the .docx file sent

Changed 3 years ago by geoffreymsilver

the original .docx attachment

comment:1 Changed 3 years ago by geoffreymsilver

  • Cc geoff@… added

comment:2 Changed 3 years ago by alec

  • Component changed from Addressbook to MIME parsing
  • Milestone changed from later to 0.4-beta

Attach sample message, please.

comment:3 Changed 3 years ago by geoffreymsilver

they were already attached at ticket creation time. "Midterm Notes.docx" is the message that gets mangled. "noname" is the resulting file.

comment:4 Changed 3 years ago by alec

The whole message source, created in Roundcube, not the attachment of the message.

Changed 3 years ago by geoffreymsilver

source message, as saved by roundcube into my Sent mail folder

comment:5 Changed 3 years ago by alec

  • Resolution set to worksforme
  • Status changed from new to closed

Works for me with svn-trunk version. Note: Gmail probably doesn't support RFC2231 that's why you have "noname". Use mime_param_folding option to disable RFC2231 encoding. Also mimetype of docx attachment is set correctly here

Content-Transfer-Encoding: base64
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document;
 name="Midterm Notes.docx";
 charset=UTF-8
Content-Disposition: attachment;
 filename="Midterm Notes.docx"

comment:6 Changed 3 years ago by geoffreymsilver

I just downloaded trunk from SVN and it works properly in there. So some change since 0.3.1 was released has fixed this bug. I'll anxiously await the final 0.4 release...

FYI, it didn't matter in 0.3.1 if I set $rcmail_configmime_param_folding? to 0, 1, or 2 - I got the same result. I had the same issue with .xlsx files, and .pptx, but .doc, .xls, and .ppt worked fine. However, they're all fine in the pre-0.4 trunk.

Note: See TracTickets for help on using tickets.