Raw button boilerplate

pull/16/head
ClaraCrazy 2024-09-28 01:49:37 +02:00
parent 4087fe13a8
commit e79d1bad49
2 changed files with 22 additions and 1 deletions

View File

@ -9,6 +9,9 @@
<a href="/inbox/{{ address }}/{{ uid }}/delete"> <a href="/inbox/{{ address }}/{{ uid }}/delete">
Delete Email</a> Delete Email</a>
<br> <br>
<a href="/inbox/{{ address }}/{{ uid }}/raw" target="_blank">
View Raw</a>
<br>
<a href="/logout"> <a href="/logout">
Logout</a> Logout</a>
</div> </div>
@ -41,7 +44,7 @@
<div class="mail_body"></div> <div class="mail_body"></div>
{% endif %} {% endif %}
{% if mail.attachments %} {% if mail.attachments %}
<div class="mail_body"> <div class="mail_attachments">
{% for attachment in mail.attachments %} {% for attachment in mail.attachments %}
<a href="">📎 {{ attachment.filename }}</a> <a href="">📎 {{ attachment.filename }}</a>
{# {#

View File

@ -0,0 +1,18 @@
{% extends 'layout.twig' %}
{% block body %}
<div class="mail_body">
<p>Not yet...</p>
{% for header, html in mail.headers %}
<p>This doesnt work rn</p>
{# TODO:
Make raw email. show all headers, preferrably even attachment raws and ofc mail.
need inspiration? open a mail "raw" in gmail. thats what I wanna mirror.
#}
{% endfor %}
</div>
{% endblock %}