Bug 101869

Summary: KMail prompt to add local files as text could be improved.
Product: [Unmaintained] kmail Reporter: ieure
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ieure 2005-03-19 01:28:29 UTC
Version:           1.8 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre1 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.10-1-686

When dropping a file into a composer window, KMail asks if it should be added as an attachment, or as text.

However, the behavior is, I think, non-optimal.

I think it should be something like:

- File is local (file:/ URI), with mime-type of text/* -> ask; 'add as text' inserts contents of the file into the body instead of pasting the URI.
- File is local and non-text -> add as attachment without asking.
- File is remote -> ask; 'add as text' pastes URI.

I think the current behavior is broken for local files, since the value of a file:/ URI to the sender is likely to be near zero.
Comment 1 Ingo Klöcker 2005-03-21 00:05:16 UTC
agreed
Comment 2 Laurent Montel 2015-04-12 10:21:06 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.