With the current ChatGPT OpenAI integration, we can already use the message body [message] as variable to perform basic optimizations.
It would be extremely valuable to also expose the email headers [header] and the HTML version of the message [message_html], or even eventually the whole .eml as attached file [message_eml] to the AI. This would enable more advanced processing that requires deeper contextual and technical information.
In particular, access to headers and embedded URLs would greatly improve scam and spam detection, phishing analysis, and overall message classification accuracy.