Opened 3 years ago
Closed 3 years ago
#1486819 closed Bugs (worksforme)
double carriage returns in mail body
| Reported by: | jurjen | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.4-stable |
| Component: | Core functionality | Version: | 0.4-beta |
| Severity: | trivial | Keywords: | carriage return line break |
| Cc: |
Description
after sending an email RC automatically adds an extra line break (carriage return) in the message body.
ie the following:
---
bla bla bla
bla bla
---
will look like:
---
bla bla bla
bla bla
---
this problem will probably only encounter on some unix/linux and for sure only when using the php mail() function to send your e-mail. Also see the remark on php.net (this evidently complies to message body also):
"Note: If messages are not received, try using a LF (\n) only. Some poor quality Unix mail transfer agents replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with » RFC 2822."
TEMPRORARY SOLUTION:
in /program/steps/mail/sendmail.inc change every occurence of '\r\n' to '\n'
PROPOSED DEFINITE SOLUTION:
use the same mechanism for auto-detecting the correct delimiter as is used for the header already. or add an config value
Change History (2)
comment:1 Changed 3 years ago by alec
- Milestone changed from later to 0.4-stable
comment:2 Changed 3 years ago by alec
- Resolution set to worksforme
- Status changed from new to closed
No feedback. Works for me with current svn code.

Did you tried with svn-trunk version?