Opened 2 years ago

Last modified 2 years ago

#1487963 reopened Feature Requests

Workaround for buggy attachment names in BODYSTRUCTURE response

Reported by: kwakushka Owned by:
Priority: 7 Milestone: later
Component: MIME parsing Version: 0.5.2
Severity: normal Keywords:
Cc:

Description

I don't know how many times it is possible to write about it, but even in last RoundCube version there is a problem concerning displaying Russian named files in attachments, as a result such names are displayed completely unreadable.

====


Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document;

name="=?koi8-r?B?/M7Gz9LUwSDV0NLP9MXILmRvY3g=?="

Content-Transfer-Encoding: base64
Content-Disposition: attachment;

filename="=?koi8-r?B?/M7Gz9LUwSDV0NLP9MXILmRvY3g=?="

====

Attachments (7)

unreach_attach.jpg (29.2 KB) - added by kwakushka 2 years ago.
imap_u131571.zip (138.7 KB) - added by kwakushka 2 years ago.
imap_u131571_body.log (15.3 KB) - added by kwakushka 2 years ago.
some_attach_mail.ru.jpg (164.0 KB) - added by kwakushka 2 years ago.
some_attach_outlook.jpg (55.8 KB) - added by kwakushka 2 years ago.
some_attach_thunderbird.jpg (49.2 KB) - added by kwakushka 2 years ago.
some_attach_gmail.jpg (204.6 KB) - added by kwakushka 2 years ago.

Download all attachments as: .zip

Change History (15)

Changed 2 years ago by kwakushka

comment:1 Changed 2 years ago by alec

  • Milestone changed from later to 0.6-beta

Works for me. What IMAP server? What PHP/OS version? Do you have iconv/mbstring modules installed? Enable IMAP debug and provide the log.

comment:2 Changed 2 years ago by kwakushka

Thanks for your reply.

  1. IMAP Server - Mercury/32.
  2. PHP/OS, iconv/modules - http://test-l2-apache1.1gb.ru/phpinfo.php
  3. IMAP log in attache.

Changed 2 years ago by kwakushka

comment:3 Changed 2 years ago by alec

I don't see BODYSTRUCTURE response in the log. Disable caching and try again.

Changed 2 years ago by kwakushka

comment:4 Changed 2 years ago by kwakushka

Is this log OK?

comment:5 Changed 2 years ago by alec

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

No it isn't.

("application" "vnd.openxmlformats-officedocu" ("NAME" "üÎÆÏÒÔÁ ÕÐÒÏôÅÈ.docx") NIL NIL "BASE64" 189817 NIL NIL NIL)

Two bugs here. Attachment content-type is truncated, attachment name is decoded.

comment:6 Changed 2 years ago by kwakushka

It could be reasonable, but why then all email clients (and all other web-based email clients mail.ru, GMail.com, yandex.ru) show this attachment name normally, except for RC?

Our hosting counts about ten thousand client and we use RC since version 0.2, but all this time our users have problems with these attachment names. We are completely and fully tired of such problems, i don't know, if it is so awfully difficult to fix it OK?

Changed 2 years ago by kwakushka

Changed 2 years ago by kwakushka

Changed 2 years ago by kwakushka

Changed 2 years ago by kwakushka

comment:7 Changed 2 years ago by kwakushka

  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:8 Changed 2 years ago by alec

  • Milestone changed from 0.6-beta to later
  • Priority changed from 5 to 7
  • Summary changed from Attachments with russian letters in headers are displayed completely unreadable. to Workaround for buggy attachment names in BODYSTRUCTURE response
  • Type changed from Bugs to Feature Requests

Some mail clients doesn't use BODYSTRUCTURE. We trust to the server response in this case. So, it's possible to do a workaround for your server issue, but it will be not a priority for us. Most servers are working well in this area. This is not a bug in Roundcube, changed ticket's type to Feature Request.

Note: See TracTickets for help on using tickets.