Bug 157961

Summary: Production of unquoted specials in address-like headers (From/To/Cc)
Product: [Applications] kmail Reporter: Matti Aarnio <matti.aarnio+kde>
Component: mimeAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: dominik.tritscher
Priority: NOR Keywords: triaged
Version: 1.9.8   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matti Aarnio 2008-02-17 11:01:10 UTC
Version:           KMail/1.9.7 (using KDE 3.5.8)
Installed from:    Fedora RPMs
OS:                Linux

Observed at vger.kernel.org Postmaster inspection logs of "TABOOed because of headers with errors":

 From:   Frans Pop <elendil@planet.nl>
 Illegal-Object: Syntax error in To: address found on vger.kernel.org:
        To:     David S.Miller <davem@davemloft.net>
                        ^      ^-missing end of address
                 \-extraneous tokens in address
 Subject: [2.6.25-rc2] System freezes ~1 minute after logging into KDE
 Date:   Sat, 16 Feb 2008 20:14:00 +0100
 User-Agent: KMail/1.9.7

What the KMail should have produced is:

     To:  "David S. Miller" <davem@davemloft.net>

The dot is so called special in RFC-2822 defined header syntax, and in order to have them outside actual addresses, they must be inside a quote-pair.  Meaning that whole names must be in quotes.

I do not use kde myself, but you are welcome to ask the Email Syntax Oracle about test fixes at address:

   autoanswer@vger.kernel.org

It sends back the headers of the email that you sent to it, including syntax markers.
Comment 1 Dominik Tritscher 2009-01-04 18:38:45 UTC
Just checked with kmail 1.10.3 using the above mentioned auto reply service. I added a dot in the middle of my name in the "from" field. The name is correctly enclosed in in quotes. So I mark this as fixed.