Bug 248288 - kaddressbook copy and paste of entries results in no name and content type
Summary: kaddressbook copy and paste of entries results in no name and content type
Status: RESOLVED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 20:55 UTC by Roman Fietze
Modified: 2010-09-15 10:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Fietze 2010-08-18 20:55:54 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

When creating an attachment of a kaddressbook entry (VCF) in kmail using copy & paste (as attachment), you will end up having an attachment with name "unknown" and content type "/".


Reproducible: Always

Steps to Reproduce:
- copy a contact
- open kmail composer
- paste as attachment

Actual Results:  
name "unknown", type "/"

Expected Results:  
name "<whatever the name of the contact was>", type "electronic business card" or "text/directory" or "text/x-vcard".

kaddressbook 4.4.5
Comment 1 Tobias Koenig 2010-09-10 17:02:44 UTC
SVN commit 1173842 by tokoe:

Do not try to add every akonadi:// url as a forwarded email message but
use proper content and mimetype instead.

Currently 'attachment' is used as name, since I have no clue how to retrieve
a meaningfull name of the Akonadi item in a generic way.

BUG: 248288


 M  +10 -0     attachmentcontroller.cpp  
 M  +6 -0      kmcomposereditor.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1173842
Comment 2 Roman Fietze 2010-09-15 10:47:49 UTC
With kmail 1.13.5, kaddressbook 4.4.6 and kontact 4.4.6 I will now get the proper contents of that attachment, some VCF date. But the content-type os now "/" and the name is "unknown".

With the old combo before the akonadi age I think the name was set to the same name as if I would have exported the VCF to a file, and the content type was set up properly.