Bug 145190

Summary: A sender with , in his name is parsed as two senders
Product: [Applications] kmail Reporter: Peter Thomassen <mail>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Peter Thomassen 2007-05-08 17:28:22 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Gentoo Packages

When I receive a message with a header line of the following form,

    From: =?iso-8859-1?Q?Lastname=2C_Firstname?= <some@example.com>

this is parsed as:

    From: Lastname, Firstname <some@example.com>

at the top of the message. Both "Lastname" and "Firstname <some@example.com>" are clickable as if the message came from two senders. When replying, the message is tried to be send to some@example.com AND to lastname@localhost.
Comment 1 Christian Schaarschmidt 2007-05-08 18:56:13 UTC
according to RFC2822 Section 3.4 this is the correct behavior. As a workaround you can place the name in quotes when you reply

From: "Lastname, Firstname" <some at example.com>
Comment 2 Christian Schaarschmidt 2007-05-08 18:58:53 UTC
aehm, sorry. In the reply-msg it should be:

TO: "Lastname, Firstname" <some at example.com> 
Comment 3 Peter Thomassen 2007-05-08 21:42:38 UTC
Indeed, I just saw that a list of several senders is allowed for the From: header. I thought this wasn't possible. Then, of course, I'm closing the bug ... and I am annoyed at those bad clients people use to contact me :-)