| Summary | Wrong header in redirected email |
| Queue | Horde Base |
| Queue Version | 5.1.4 |
| Type | Bug |
| State | Not A Bug |
| Priority | 1. Low |
| Owners | |
| Requester | mo (at) pehi-solutions (dot) de |
| Created | 11/20/2013 (4372 days ago) |
| Due | |
| Updated | 11/21/2013 (4371 days ago) |
| Assigned | |
| Resolved | 11/21/2013 (4371 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
I only wonder, because the \r comes from
$contents->getHeader(IMP_Contents::HEADER_TEXT)
and also there is no problem when forwarding emails.
State ⇒ Not A Bug
In our released versions of IMP, we have this in imp/lib/Compose.php:
$header_text =
trim($resent_headers->toString(array('encode' => 'UTF-8'))) . "\n" .
trim($contents->getHeader(IMP_Contents::HEADER_TEXT));
So if "\r\n" exists in that line, it has been inserted downstream.
I found a solution for my problem by removing \r from $header_text in
imp/lib/Compose.php. With only \n in $header_text i get \r\n in the
Header which is correct. With \r\n it becomes \r\n\r\n in the received
email header.
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ Wrong header in redirected email
Type ⇒ Bug
State ⇒ Unconfirmed
the original email header, so the email client is not able to display
the email correctly.