Closed Bug 384049 Opened 18 years ago Closed 15 years ago

email_in.pl reply line terminator (CRLF) confuses sendmail.postfix

Categories

(Bugzilla :: Incoming Email, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ehoover, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20060601 Firefox/2.0.0.4 (Ubuntu-edgy) Build Identifier: Bugzilla 3.0 When bugzilla fails to make a change based on an email the "reply" feature responds with the wrong line terminator for the postfix version of sendmail. This problem means that no descriptive error messages are returned to the user (just a bounce). The problem can be corrected by stripping the carriage return from the email before it is sent to the MTA in "die_handler". Replace: MessageToMTA($reply->as_string); With: my $text = $reply->as_string; $text =~ s/\r//g; MessageToMTA($text); Reproducible: Always Steps to Reproduce: 1. Setup Bugzilla with Postfix sendmail 2. Try to send bugzilla an email with an invalid parameter Actual Results: An "Undelivered Mail Returned to Sender" notification is sent to the sender of the email and the message "sendmail: fatal: No recipient addresses found in message header" is output on STDERR. Expected Results: A descriptive error email (like "A legal Resolution was not set.") Even though the standard CR-LF combination should be accepted by the postfix sendmail application it does not appear to be working. All other emails on the system work fine (including bugzilla notifications not sent by email_in.pl).
Um, I'm pretty sure RFCs state that the line terminator MUST be a CRLF. Am I wrong?
Version: unspecified → 3.0
Component: Creating/Changing Bugs → Incoming Email
I am in fact not wrong, RFC2822 requires all email lines to end in CRLF.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.