Disabling email templating for inject API

Hello :slightly_smiling_face:

We are currently sending messages via kumoMTA using the /inject/v1 ReST API endpoint but some HTML bodies contain what is interpreted as mininija templating but no substitution is given and the request then fails with a 500.

deferred_generation only makes the message fail in queues and the HTML should not be altered to the recipient (the {% toto %} and other “templated” variables should appear in the inbox html)

Can we easily disable the templating this with the ReST endpoint ?

Thanks in advance :folded_hands:

it’s not possible to disable it, but you could wrap your message content in a raw block: minijinja::syntax - Rust

oki, thanks :heart:
gotta look at this :eyes:

Update: you can now specify template_dialect as static to prevent processing.