https://bugs.kde.org/show_bug.cgi?id=360320
Bug ID: 360320 Summary: kMail 5 garbles original "To" header when bouncing a message Product: kmail2 Version: 5.1 Platform: Kubuntu Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: kdepim-b...@kde.org Reporter: kdeb...@customcdrom.de If the following eMail message is forwarded using kMail's "redirect" feature, the "To" header is garbled and the mail is rejected by my eMail server. (The reject might depend on my MTAs config, but the header is invalid/garbled in any case.) Received mail in plain text: Return-path: <mails.kmail-bug-t...@gunter.example.com> Envelope-to: mails.kmail-bug-t...@gunter.example.com Delivery-date: Wed, 09 Mar 2016 18:28:28 +0100 Received: from fw1-ks.relaix.net ([93.159.250.22] helo=zweiblum.localnet) by luggage.example.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from <mails.kmail-bug-t...@gunter.example.com>) id 1adhuN-0008F3-Vd for mails.kmail-bug-t...@gunter.example.com; Wed, 09 Mar 2016 18:28:28 +0100 From: Gunter Ohrner <mails.kmail-bug-t...@gunter.example.com> To: "'mails.kmail-bug-t...@gunter.example.com'" <mails.kmail-bug-t...@gunter.example.com> Date: Wed, 09 Mar 2016 18:28:27 +0100 Message-ID: <7116823.kzxej45...@zweiblum.example.com> Organization: Ohrner IT GmbH User-Agent: KMail/5.0.3 (Linux/4.2.0-30-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="iso-8859-1" Subject: Test Test -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The future isn't what it used to be. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + PGP-verschlüsselte Mails bevorzugt! + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The mail now stuck in my outbox looks as follows: Return-Path: <mails.kmail-bug-t...@gunter.example.com> Envelope-to: mails.kmail-bug-t...@gunter.example.com Delivery-date: Wed, 09 Mar 2016 18:28:28 +0100 Received: from fw1-ks.relaix.net ([93.159.250.22] helo=zweiblum.localnet) by luggage.example.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from <mails.kmail-bug-t...@gunter.example.com>) id 1adhuN-0008F3-Vd for mails.kmail-bug-t...@gunter.example.com; Wed, 09 Mar 2016 18:28:28 +0100 From: Gunter Ohrner <mails.kmail-bug-t...@gunter.example.com> Date: Wed, 09 Mar 2016 18:28:27 +0100 Message-ID: <7116823.kzxej45...@zweiblum.example.com> Organization: Ohrner IT GmbH User-Agent: KMail/5.0.3 (Linux/4.2.0-30-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="iso-8859-1" Subject: Test Resent-Message-ID: <201603091829.15...@zweiblum.example.com> Resent-Date: Wed, 09 Mar 2016 18:29:15 +0100 Resent-From: Gunter Ohrner <mails.kmail-bug-t...@gunter.example.com> To: 'mails.kmail-bug-t...@gunter.example.com', mails.kmail-bug-t...@gunter.example.com Resent-To: mails.kmail-bug-test-fwd_a...@gunter.example.com Test -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The future isn't what it used to be. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + PGP-verschlüsselte Mails bevorzugt! + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ See how the address consisting of an awkwardly formatted real name and the acutal address in the original "To" field is now split into two addresses, the first of which is invalid as it's quoted. My mail server does a header syntax check, complains and rejects the mail. Reproducible: Always -- You are receiving this mail because: You are watching all bug changes.