Bug 363464 - resent headers put incorrectly when redirecting
Summary: resent headers put incorrectly when redirecting
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: misc (show other bugs)
Version: 5.3.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-24 11:38 UTC by Erik Quaeghebeur
Modified: 2017-05-19 11:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2016-05-24 11:38:42 UTC
From RFC5322 <https://tools.ietf.org/html/rfc5322#section-3.6.6>:

   Resent fields SHOULD be added to any message that is reintroduced by
   a user into the transport system.  A separate set of resent fields
   SHOULD be added each time this is done.  All of the resent fields
   corresponding to a particular resending of the message SHOULD be
   grouped together.  Each new set of resent fields is prepended to the
   message; that is, the most recent set of resent fields appears
   earlier in the message.  No other fields in the message are changed
   when resent fields are added.

So the original message should be taken and the resent headers should be prepended as a single block, nothing more, nothing less. Currently, KMail appends the headers and further modifies the original headers, as can be seen, e.g., in bug 360320 <https://bugs.kde.org/show_bug.cgi?id=360320#c0>, which also shows that this bug is still present in the 5-branch.

Reproducible: Always
Comment 1 Denis Kurz 2017-05-19 11:09:43 UTC
Seemingly still present in 5.3.1, as can be seen in Bug 360320 as referenced by Erik.