Opened 10 years ago

Last modified 8 years ago

#4973 new bug

Zip attachment is renamed

Reported by: humdinger Owned by: bga
Priority: normal Milestone: R1
Component: Applications/Mail Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


This is hrev33939.

When attaching a zip archive to a mail, it appears simply as "attachment" not with it's proper filename, when sent to someone not using Haiku Mail. For example in my webmail account or when sent so some MS Outlook shlob.

Mail shows the proper filename, independently if the BeOS attributes are sent with it or not.

JPEGs, PNGs, a HTML page and a TXT file came through unharmed.


Attachments (1)

Test mail with attachment bü 20091116164049 (4.5 KB ) - added by humdinger 10 years ago.
Test mail with attached file "bü"

Download all attachments as: .zip

Change History (4)

comment:1 by axeld, 10 years ago

Since Mail does not have any special treatment for ZIP files, this sounds indeed strange. Can you attach a problematic test mail to this ticket?

comment:2 by humdinger, 10 years ago

I first couldn't reproduce. Thought I went mad[[BR]] It looks like it only happening with attachments containing a non-ASCII(?) character. At least with my German Umlaut "ü". So... the zipped up mail is attached to this ticket.

Attached to this mail is a zip file called "bü", within it a text file named "bugs".

When viewed via the web mail interface, the enclosure appears renamed to "attachment". When it's downloaded from Haiku, Mail does show the correct filename "bü".

From Mail's preferences "No BeOS attributes" are sent with the mail, but even if you do, there's no different outcome.

by humdinger, 10 years ago

Test mail with attached file "bü"

comment:3 by stpere, 8 years ago


In the 2.3 section, "The filename parameter".. :

Current [RFC 2045] grammar restricts parameter values (and hence

Content-Disposition filenames) to US-ASCII

So, I guess we should transcode the string to US-ASCII to follow the standard.

Note: See TracTickets for help on using tickets.