6.0.0-beta1
9/15/25

[#2449] Too many newline characters if a message is redirected out of a cyrus mailbox to a local postfix
Summary Too many newline characters if a message is redirected out of a cyrus mailbox to a local postfix
Queue IMP
Queue Version 4.0.3
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester t.zell (at) gmx (dot) de
Created 08/15/2005 (7336 days ago)
Due
Updated 09/08/2005 (7312 days ago)
Assigned 08/15/2005 (7336 days ago)
Resolved 09/08/2005 (7312 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/08/2005 06:07:26 AM Michael Slusarz Comment #4
State ⇒ Resolved
Reply to this comment
Merged to 4.0.4.
09/01/2005 07:16:19 AM Jan Schneider Comment #3 Reply to this comment
Added Milestone attribute to Ticket Type "Bug".
09/01/2005 04:27:08 AM Michael Slusarz Comment #2
Priority ⇒ 2. Medium
Reply to this comment
This appears to be a sendmail specific issue on UNIX machines.   
However, I *think* your patch will work since erring on the side of 
less newline characters always seems to work better too many newline 
characters (I know this is a really in-depth, technical analysis of 
the problem...)



I will add this to HEAD for testing, and hopefully get this in before 
IMP 4.0.4 is released (there doesn't seem to be a Milestone input on 
this bug so I can't set this version requirement there).
08/15/2005 10:28:14 PM Jan Schneider State ⇒ Assigned
Assigned to Michael Slusarz
 
08/15/2005 08:08:21 PM t (dot) zell (at) gmx (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Too many newline characters if a message is redirected out of a cyrus mailbox to a local postfix
Queue ⇒ IMP
New Attachment: compose_patch.diff Download
State ⇒ Unconfirmed
Reply to this comment
My configuration is:

cyrus-imapd 2.2.12

postfix 2.2.1

horde 3.0.5

imp 4.0.3

Mail 1.1.6 from PEAR



IMP sends emails through the local "sendmail" command from postfix. 
This command expects lines to be terminated by "\n". The "redirect" 
command in IMP (which fetches the message body directly from the IMAP 
inbox) delivers a message which contains "\r\n" as newline characters, 
however. Depending on the mail servers the email passes through, the 
email will have an empty line between every line of text, when it 
reaches the recipient.



I attached a patch, which converts all newline to characters to "\n" 
for redirected messages ... but this is probably not a universal 
solution, since it may break other cases ...

Saved Queries