6.0.0-beta1
7/6/25

[#12850] Wrong header in redirected email
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 (4246 days ago)
Due
Updated 11/21/2013 (4245 days ago)
Assigned
Resolved 11/21/2013 (4245 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/21/2013 11:16:15 PM mo (at) pehi-solutions (dot) de Comment #5 Reply to this comment
ok, so if it's really a plesk issue, please excuse my bug report.
I only wonder, because the \r comes from 
$contents->getHeader(IMP_Contents::HEADER_TEXT)
and also there is no problem when forwarding emails.

11/21/2013 10:55:22 PM Michael Slusarz Comment #4
State ⇒ Not A Bug
Reply to this comment
Then this is a Plesk issue.

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.
11/21/2013 11:31:33 AM mo (at) pehi-solutions (dot) de Comment #3 Reply to this comment
Horde 5.1.4 was installed by Plesk update to 11.5

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.



11/21/2013 04:51:21 AM Michael Slusarz Comment #2 Reply to this comment
Can't reproduce.  You are using SMTP to send, right?
11/20/2013 06:23:34 PM mo (at) pehi-solutions (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ Wrong header in redirected email
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
if you redirect an email, there is an empty line after each line of 
the original email header, so the email client is not able to display 
the email correctly.

Saved Queries