{% if message.is_multipart %} {% for body in message.get_payload %} {% if body.get_content_maintype == 'text' %} {% else %} {% endif %} {% endfor %} {% else %} {% if message.get_content_maintype == 'text' %} {% else %} {% endif %} {% endif %}
MIME Content
{{ body.get_content_type }} {{ body.as_string() }} {{ body.get_content_type }} Currently only text bodies are supported!{{ message.get_content_type }} {{ message.as_string() }} {{ message.get_content_type }} Currently only text bodies are supported!