Lucee ignores cfmailparam name="Message-ID"

Description

Lucee 5.2.5.20
-------------------
CFML:
<cfmailparam name="Message-ID" value="<#message_id#>">
Result:
Message-ID: <1790945.36.1568570987311.JavaMail.HYPNOS$@Hypnos>

Adobe ColdFusion 10
--------------
CFML:
<cfmailparam name="Message-ID" value="<#message_id#>">
Result:
Message-ID: <13034050@208828803965331737.ezinedirector1.email>

Environment

Windows Server Enterprise, Lucee 5.2.5.20, Apache James

Activity

Show:
Pothys - MitrahSoft
September 29, 2020, 6:23 PM

I've checked this ticket and confirmed the issue happened in lucee both affected and the latest version 5.3.8.76-SNAPSHOT.
Lucee ignores the cfmailparam Message-ID and lucee leaks the system information in message_id.
cfmailparam Message-ID works fine in ACF and also it overrides the Message-ID in the mail.

Zac Spitzer
October 21, 2020, 2:42 AM

setting mailparam messageId didn't work, because it needs to be done after calling message.saveChanges()

https://stackoverflow.com/a/40257505/106175

Michael Offner
October 23, 2020, 11:21 PM

adapted the fix from

and modified it a little bit

Michael Offner
October 23, 2020, 11:22 PM

please give it a try

Pothys - MitrahSoft
October 24, 2020, 1:24 AM

I've checked the issue with latest version 5.3.8.87-SNAPSHOT.
Yes, now it works fine. Now can overwrite the mail messageId with cfmailparam messageId.

Fixed

Assignee

Michael Offner

Reporter

Brent Livingston

Priority

Major

Fix versions

Affects versions