Bug 353620

Summary: distribution list is resolved by comma in name
Product: [Applications] kmail2 Reporter: Eugen Albiker <eugen>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: eugen
Priority: NOR    
Version: 5.10.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Eugen Albiker 2015-10-06 20:44:39 UTC
I created a distribution list (group) with one recipient for test
Contents of the distribution list "testlist" in kaddressbook 4.14.7
column "name" = "Doe, John"
column "E-mail" = "test@test.de"

The I write a new Email to the distribution list "testlist" and save the EMail as draft.
When I reopen the saved draft email there a 2 (!) recipients:
1) "Doe
2) John" <test@test.de>
I had not forgotten a quote sign above in 1+2! the is the real content of the 2 fields.

ok, if I change the name to "Doe, John" then the distribution list is resolved correct to only one recipient --> "Doe, John" <test@test.de>
But I think it should be possible to resolve a distribution list correctly.

Eugen

Reproducible: Always

Steps to Reproduce:
1. Create distribution list "testlist" in kaddressbook 4.14.7
2. column "name" = "Doe, John"
3. column "E-mail" = "test@test.de"
4. Write new Email to the distribution list "testlist"
5. Save the Mail as draft
6. Reopen the saved draft mail

Actual Results:  
There are 2 recipients
1) "Doe
2) John" <test@test.de>

Expected Results:  
There should be 1 recipient
1) "Doe, John" <test@test.de>
Comment 1 Eugen Albiker 2019-08-18 21:22:24 UTC
Bug is existing in KMail 5.10.3.

Additional Infos for steps to Reproduce:
1. Create distribution list "testlist" in kaddressbook 5.10.3
2. column "name" = "Doe, John"
3. column "E-mail" = "test@test.de"
4. Write new Email to the distribution list "testlist"! 
5. Save the Mail as draft
6. Reopen the saved draft mail

Actual Results:  
There are 2 recipients
1) "Doe
2) John" <test@test.de>

Expected Results:  
There should be 1 recipient
1) "Doe, John" <test@test.de>

Important Infos:
a) When you write the EMail and type "testlist" with the keyboard in the textfield "To:": all will be right and in the draft email the recipient "Doe, John" <test@test.de>" will be saved - correct
b) But when you write the Email and click "choose.." (German button named: "Auswählen...") choose "testlist" from the upcoming window "Choose recipient - KMail" (German "Empfänger auswählen - KMail") then 2 recipients will be saved in the draft Email, which is wrong:
  1. "Doe" and 
  2. John" <test@test.de>

Greetings 
Eugen