Closed (fixed)
Project:
Messaging
Version:
5.x-1.1
Component:
PHPMailer
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2009 at 05:40 UTC
Updated:
8 May 2009 at 11:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
jose reyero commentedFixed for both 5.x and 6.x. Thanks
Comment #2
jmcclelland commentedHm. I'm not sure my patch is a very good one after all, but I'm also not sure how to improve it.
It seems as though phpmailer will add it's own Message-ID header. With my patch, we add a second one. However, I just upgraded to the dev version of mailhandler (2008-Dec-25 release of 5-x.1.x-dev) and mailhandler is only taking the phpmailer's provided Message-Id and ignoring the other one. I've looked through the phpmailer code and can't figure out a way to suppress the phpmailer Message-Id header. Any ideas??
Comment #4
batje commentedThe patch is the following:
change line 85 from
$mail->AddCustomHeader('Message-ID: ' . $message['headers']['Message-ID']);
to
$mail->MessageID = $message['headers']['Message-ID']);
The result of the current implementation is that the HeaderID is added twice. Some mailclients return the wrong one. (like Kontakt)
Comment #5
sagannotcarl commentedThanks for this batje, this was exactly what I was looking for!
There was an extra ) in the line above. Here is a patch of your change that solves the problem for me.
Comment #6
samhassell commentedMr Sagan's patch in #5 works for me with latest dev.
Thanks guys.
Comment #7
jose reyero commentedOk, looks good.
Committed, thanks for the patch and for the testing.