Bug 164328

Summary: Drag and drop of addresses from a mail to composer does not work
Product: [Applications] kmail Reporter: Urs Wolfer <uwolfer>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.9.52   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Urs Wolfer 2008-06-17 20:23:21 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I'm not able to drag an mail address from KMail (e.g. "From:" field) to a new composers "To:" field.

I get the following message: "Unable to access ..."
Comment 1 Thomas McGuire 2008-06-18 12:50:31 UTC
Confirmed with 1.9.52.
Comment 2 Allen Winter 2008-06-18 14:48:35 UTC
I investigate this a bit last night.

So far I know the following:
- the mime type for the drag data is "text/plain" or "uri/foo" (I forget right now), but KVCardDrag::mimeType expects "text/directory" 

- the drag data is of the form "mailto:Allen Winter<winter@kde.org>"

if we change KVCardDrag::mimeType() to return "text/plain", we no longer get the error dialog nor a crash.  However, KABC::VCardConverter().parseVCard doesn't seem to know how to parse a "mailto:address", so the drop is empty
Comment 3 Urs Wolfer 2008-07-19 11:21:16 UTC
Any chances to get this fixed soon? It's a quite annoying bug for me.
Comment 4 Allen Winter 2008-07-20 23:21:43 UTC
Urs,

Thomas and I took a look today and determined that the bug is due to a behavior change in KUrl.  We have a query into dfaure about how to proceed.

There is a good chance we can squeeze in a fix before tagging on Tuesday.
Comment 5 Thomas McGuire 2008-07-21 16:25:14 UTC
SVN commit 835989 by tmcguire:

Fix dropping of mailto: Urls.
Needs an up-to-date kdelibs.
BUG: 164328


 M  +43 -20    kmlineeditspell.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=835989
Comment 6 Thomas McGuire 2008-07-21 19:32:28 UTC
SVN commit 836075 by tmcguire:

Backport r835989 by tmcguire to the 4.1 branch:

Fix dropping of mailto: Urls.
Needs an up-to-date kdelibs.
CCBUG: 164328



 M  +43 -20    kmlineeditspell.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=836075