stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
5.31k stars 222 forks source link

[enhancement]: I hope that the Request in MTA-HOOK can include the original email EML data. #903

Open Boomboomdunce opened 2 weeks ago

Boomboomdunce commented 2 weeks ago

Which feature or improvement would you like to request?

I hope that the Request in MTA-HOOK can include the original email EML data, so that third parties can call it when they have their own EML parsing API. Currently, when using the rust mail_parser library, eml_message.body_html(0).unwrap() or eml_message.body_text(0).unwrap() cannot be used, because in the MTA-HOOK context, the EML has already been parsed into a string through Content-Transfer-Encoding.

Is your feature request related to a problem?

I'm having a problem with...

Code of Conduct

mdecimus commented 2 weeks ago

I suggest that you use Milter instead, the request includes the raw message.

Boomboomdunce commented 2 weeks ago

I suggest that you use Milter instead, the request includes the raw message.

Thank you very much for your suggestion, milter does indeed solve this problem!

At the same time, I also hope that MTA-HOOK, as a new email filtering standard, can support user freedom in configuration to choose whether to parse EML emails into fields for sending or to send the original EML content, which is more flexible.