View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010040 | mantisbt | public | 2009-01-09 20:16 | 2016-07-20 17:11 | |
Reporter | jpeeler | Assigned To | rombert | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
OS | Linux | OS Version | Ubuntu 8.04.1 | ||
Product Version | 1.1.6 | ||||
Summary | 0010040: Email notification from new bug report submission Message-ID headers not RFC 822 compliant | ||||
Description | In particular, the @hostname part is missing: Message-ID: <fb300c6bcd2798e89e6668479ee8595c> | ||||
Additional Information | Two places of interest:
diff --git a/core/email_api.php b/core/email_api.php
Which seemed to yield: MessageID: <3718723d794b4b75f14cc91587352886>@localhost But the fix probably works with 1.2. | ||||
Tags | |||||
Lately, I was actually wondering why emails from this tracker was all threaded except from the initial one. It turns out not only we are missing the domain part (a mistake from my original implementation) but right now we are not even enclosing the header in brackets. Subject: [mantisbt 0010040]: Email notification from new bug report submission Message-ID headers not RFC 822 compliant It would be nice to find out when this happened; if only I could manage to improve my git-fu... |
|
Some updates on this. The situation in the 1.1 branch is that we are still running an older phpmailer which is setting a Message-ID regardless if we push a custom one along with the other headers, so outgoing messages have a double Message-ID header. I originally patched phpmailer as part of 0008706, but the patch I proposed to them was never included, so when they eventually added some very similar code, we picked it up and did not notice the new code is honouring the new message-ID, but not adding anything like brackets and/or hostname. I'm preparing a patch based on paulr code above for the 1.2 branch. What to do with 1.1 is unclear because we usually do not make big changes in the released version. |
|
I missed previously that there was already an open report for this. This issue is related to issue 0009753. |
|
Reminder sent to: jreese, vboctor If we want to fix this on the 1.1 branch, we need to upgrade phpmailer. Are you okay with the change? |
|
Well, in principle, I would agree that since it's fixing a bug, it should be fine. However, how much more will we need to backport from 1.2.x in order to move to the newer version of PHPMailer? If it's only a small bit of effort, then I say go for it; otherwise, I don't think it's a high-enough priority fix for a maintenance release. |
|
My guess is "not too much", but my memory may fail... |
|
Please note that RFC822 is obsoleted by RFC2822. It would be best to make sure this ticket still applies to the RFC2822 spec before making changes. |
|
dhx: you're right, but AFAICT we still need to fix this stuff according to RFC2822 |
|
Has a decision been made about this bug? I just heard a report of email notifications being filtered through a Bastion host getting rejected because of the invalid Message-ID. |
|
Losing notifications generates a lot of support requests, so it would be good if we can fix this in 1.1.8 branch. |
|
This work fine in 1.2 , should we close the bug? |
|
Since 1.1 isn't maintained and it really is fixed in 1.2, then there's no reason to keep this open. |
|
Great, thanks. |
|
MantisBT: master 69fd1739 2009-01-10 18:23 Details Diff |
Fix 10040: Email notification from new bug report submission Message-ID headers not RFC 822 compliant |
Affected Issues 0010040 |
|
mod - core/email_api.php | Diff File | ||
MantisBT: master d5b6cf26 2009-01-10 18:23 Details Diff |
Fix 10040: Email notification from new bug report submission Message-ID headers not RFC 822 compliant |
Affected Issues 0010040 |
|
mod - core/email_api.php | Diff File |