barbushin / php-imap

Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)
MIT License
1.65k stars 459 forks source link

[Feature Request] Add Origin-MessageID header #700

Open patriotaki opened 1 year ago

patriotaki commented 1 year ago

Is your feature request related to a problem? Please describe. Some SMTP services like sendinblue add their own headers to the email even when sending the email through phpmailer with custom messageid. The custom message id is force-added by sendinblue in the origin-messageid header instead of the message-id Message-Id: <8a01c5eb-d900-44b-be3-cd880c7@smtp-relay.sendinblue.com> Origin-messageId: <kFF2xTb0ViIXObhTFvtoCUmLIF9cIOVs@domain.com>

This is an issue when you try to create a conversation thread and want to map the msgs ids.

Describe the solution you'd like Add the origin-messageid to the headers list, it is also missing from the $email->headersRaw function