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: [email protected]
          Reporter: [email protected]

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: <[email protected]>
Envelope-to: [email protected]
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 <[email protected]>)
    id 1adhuN-0008F3-Vd
    for [email protected]; Wed, 09 Mar 2016 18:28:28
+0100
From: Gunter Ohrner <[email protected]>
To: "'[email protected]'"
<[email protected]>
Date: Wed, 09 Mar 2016 18:28:27 +0100
Message-ID: <[email protected]>
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: <[email protected]>
Envelope-to: [email protected]
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 <[email protected]>) id
1adhuN-0008F3-Vd for [email protected]; Wed, 09 Mar 2016
18:28:28 +0100
From: Gunter Ohrner <[email protected]>
Date: Wed, 09 Mar 2016 18:28:27 +0100
Message-ID: <[email protected]>
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: <[email protected]>
Resent-Date: Wed, 09 Mar 2016 18:29:15 +0100
Resent-From: Gunter Ohrner <[email protected]>
To: '[email protected]',
[email protected]
Resent-To: [email protected]

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 the assignee for the bug.
_______________________________________________
Kdepim-bugs mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kdepim-bugs

Reply via email to