Bug 4073 - Support creating image attachments by pasting into compose window
Summary: Support creating image attachments by pasting into compose window
Status: NEW
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Compose Window (show other bugs)
Version: 3.17.0
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2018-08-18 14:47 UTC by Shai Berger
Modified: 2018-08-18 14:47 UTC (History)
0 users

See Also:


Attachments

Description Shai Berger 2018-08-18 14:47:40 UTC
Images can be attached to mails, just like any other file. However, images can also exist in modern clipboards (e.g. after taking a screenshot, or copying part of an image in an image editor), and it is sometime useful to attach these copied images to a mail. Currently, the only way to do this in Claws-Mail is to save the image as a (temporary) file, and attach that file. This is a little cumbersome.

I'm suggesting that if an image is pasted into the composer window, Claws will add it to the message as an attachment. Points to consider:

1) There should be clear, visible feedback to the user -- just having the image added to the "attachments" tab of the header pane is not enough, because that tab may be hidden or just "full" of previous attachments.

2) Attachments need file names. If the image got into the clipboard by copying a file via a file manager (or some equivalent action), then the file name may be available, but as noted above that is not necessarily the case. I see two viable paths when there is no name: Either use a generic, constant name ("Image"?) with a suffix according to the image content-type (e.g "Image.png"), or generate a probably-unique name (e.g. based on current time or some random selection of characters).

2a) Whichever is picked for 2) above, it may be useful to open a dialog for the user to edit the file name. In the case where the user wished to accept the file name, it would require them one more action of confirmation; in the case where they wish to change it, it would save them the relatively complex process of picking the attachment from the attachments tab, picking "properties" from the context menu, and only then getting to edit the name. It would also serve as the user-feedback mentioned in point 1).

"Prior art": Some vague version of this feature has been discussed in a thread starting at https://lists.claws-mail.org/pipermail/users/2013-March/005736.html (thanks IRC user Woody``` for the reference). I have seen it in other mail clients (probably KMail, but I'm not 100% sure).

Note You need to log in before you can comment on or make changes to this bug.