Bug 297540

Summary: kaddressbook doesn't correctly handle contacts where email address field has contact name in
Product: [Applications] kaddressbook Reporter: Divan Santana <divan>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: tokoe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Divan Santana 2012-04-05 15:30:34 UTC
SUMMARY
If one creates a contact on a platform that creates a contact with the email field filled in as per below syntax:
Email Addr Field: "Firstname Surname" <Firstname.Surname@example.org>
Instead of the norm:
Email Addr Field: Firstname.Surname@example.org
Then kaddressbook doesn't correctly handle that email address.

STEPS TO REPRODUCE
1. Create a contact with the email address field populated as per:
Email Addr Field: "Firstname Surname" <Firstname.Surname@example.org>
Instead of the norm:
Email Addr Field: Firstname.Surname@example.org
NOTE: One can't do this form kaddressbook as it strips out the email address nicely. Therefore one would have to do this from:
a) An Android phone syncing with Kontact
or rather (and ease to reproduce this problem)
b) Simply import a contact formulated in this manner.
Import this contact:
BEGIN:VCARD
EMAIL:"Firstname Surname" <Firstname.Surname@example.org>
FN:Firstname Surname
N:Surname;Firstname;;;
UID:8e548460-3843-4e39-9d71-19c7dad93864:521756
VERSION:3.0
END:VCARD

WHAT HAPPENS
2. View this contact in kaddress book. You notice the email address field is not nicely displayed in kaddressbook search view. Rather you see 
Email "Firstname Surname"
3. Compose an email in kmail search for this contact via To => select => Select the contact and Add to To field.
You notice the email address field has the below as email address:
Firstname Surname
4. Try send email to this contact. It fails obviously.

Repeat step 1 from previous.

WHAT SHOULD HAPPENS
2. View this contact in kaddress book. You notice the email address field is correclty displayed in kaddressbook search view. You see:
Firstname.Surname@example.org
3. Compose an email in kmail search for this contact via To => select => Select the contact and Add to To field.
You notice the email address field has the below as email address:
Firstname.Surname@example.org
4. Try send email to this contact. It works.

OTHER
kaddressbook if you open the contact the email address field displays:
"Firstname Surname" <Firstname.Surname@example.org>
It needs to be able to handle contacts with email address that are formatted in this manner.
Comment 1 Divan Santana 2012-06-30 11:00:34 UTC
Was a bug between my android (MIUI) and Zimbra via Exchange.
If I connect via carddav it resolves the issue.