Bug #57

Save un-named attachments doesn't add the file extension

Added by Gyll . over 2 years ago. Updated 4 months ago.

Status:ConfirmedStart date:04/21/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-Spent time:-
Target version:-

Description

I see that the newest version of Sylpheed properly saves un-named attachments (when i right-click and select "Save" or "Save all"), and it properly names them "Untitled-1", "Untitled-2", etc, which is great, but it doesn't automatically add the extension, such that the attachments end up saved but cannot be opened unless i rename them and give them the proper extension.

Can you please fix this and automatically add the file extension (taken from the MIME type) to the "Untitled-xxx" file names when saving them (ATT: for BOTH "Save" and "Save all" right-click menu on attachments)

filename-no-extension.png - File extension not added to file names (300 KB) Gyll ., 04/21/2012 05:45 PM

0001-set-default-file-name-if-filename-and-name-are-empty.patch Magnifier (1.35 KB) Kentaro HAYASHI, 05/10/2014 06:07 PM

History

#1 Updated by Kentaro HAYASHI 4 months ago

  • Status changed from New to Confirmed

I've just checked this issue on other platform such as Ubuntu 14.04 LTS.

% pkg-config --modversion gtk+-2.0
2.24.23

Currently, when I tried to save un-named attachment file, it seems that default file name is empty.
As previouly used folder is not remembered, so file name is empty in such a case, I guess.(filename and name are both empty case in mimepart)

#2 Updated by Kentaro HAYASHI 4 months ago

I've attached the patch to fix missing file extension.
Note that it doesn't care sequential "Untitled-".

Also available in: Atom PDF