2020-03-14 16:10:09 +01:00
|
|
|
{% extends 'default.html' %}
|
|
|
|
|
|
|
|
{% block title %}
|
2020-03-17 09:43:12 +01:00
|
|
|
Quarantine
|
2020-03-14 16:10:09 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% set active_page = "setting" %}
|
|
|
|
|
|
|
|
{% block default_content %}
|
2020-04-05 19:59:48 +02:00
|
|
|
<div class="col">
|
2020-03-17 09:43:12 +01:00
|
|
|
<h1 class="h3 mb-5"> Quarantine </h1>
|
2020-03-14 16:10:09 +01:00
|
|
|
|
2020-03-15 18:06:57 +01:00
|
|
|
<div class="alert alert-info">
|
2020-03-17 09:43:12 +01:00
|
|
|
This page shows all emails that are potentially spams or malicious.
|
|
|
|
Usually these emails have been <b>refused</b> (or bounced) by your mailbox. <br>
|
|
|
|
|
|
|
|
- If an email is indeed spam, this means the alias is now in the hands of a spammer,
|
2020-03-15 18:06:57 +01:00
|
|
|
in this case you should <b>disable</b> this alias. <br>
|
2020-03-17 09:43:12 +01:00
|
|
|
|
2020-03-15 18:06:57 +01:00
|
|
|
- Otherwise, you should create a <b>filter</b> to avoid your email provider from blocking these emails. <br>
|
|
|
|
<a href="mailto:hi@simplelogin.io">Contact us↗</a> if you need any help.
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-03-30 21:46:52 +02:00
|
|
|
{% if email_logs|length == 0 %}
|
2020-03-14 16:10:09 +01:00
|
|
|
<div class="my-4 p-4 card">
|
2020-03-17 09:43:12 +01:00
|
|
|
You don't have any emails in Quarantine.
|
2020-03-14 16:10:09 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-03-30 21:46:52 +02:00
|
|
|
{% for email_log in email_logs %}
|
|
|
|
{% set refused_email = email_log.refused_email %}
|
2020-08-15 16:56:16 +02:00
|
|
|
{% set contact = email_log.contact %}
|
|
|
|
{% set alias = contact.alias %}
|
2020-03-14 16:10:09 +01:00
|
|
|
|
2020-03-30 21:46:52 +02:00
|
|
|
<div class="card p-4 shadow-sm {% if email_log.id == highlight_id %} highlight-row {% endif %}">
|
2020-03-14 16:10:09 +01:00
|
|
|
<div class="small-text">
|
|
|
|
Sent {{ refused_email.created_at | dt }}
|
|
|
|
</div>
|
|
|
|
|
2020-08-15 16:58:11 +02:00
|
|
|
{% if email_log.is_reply %}
|
|
|
|
From: {{ alias.email }} <br>
|
|
|
|
To: {{ contact.website_email }}
|
|
|
|
{% else %}
|
|
|
|
From: {{ contact.website_email }} <br>
|
2020-03-17 09:43:12 +01:00
|
|
|
|
2020-08-15 16:58:11 +02:00
|
|
|
<span>
|
2020-03-17 11:51:40 +01:00
|
|
|
To: {{ alias.email }}
|
|
|
|
<a href='{{ url_for("dashboard.index", highlight_alias_id=alias.id) }}'
|
2020-03-17 09:43:12 +01:00
|
|
|
class="btn btn-sm btn-outline-danger">Disable Alias</a>
|
|
|
|
</span>
|
2020-08-15 16:58:11 +02:00
|
|
|
{% endif %}
|
2020-03-17 09:43:12 +01:00
|
|
|
|
2020-03-15 11:14:58 +01:00
|
|
|
{% if refused_email.deleted %}
|
2020-03-17 09:43:12 +01:00
|
|
|
<div>
|
|
|
|
Email deleted {{ refused_email.delete_at | dt }}
|
|
|
|
</div>
|
2020-03-15 11:14:58 +01:00
|
|
|
{% else %}
|
2020-03-15 18:06:57 +01:00
|
|
|
<a href="{{ refused_email.get_url() }}" download
|
|
|
|
class="mt-4">Download →</a>
|
2020-08-15 16:58:11 +02:00
|
|
|
<div class="small-text">This will download a ".eml" file that you can open in your email client</div>
|
2020-03-15 11:14:58 +01:00
|
|
|
{% endif %}
|
2020-03-14 16:10:09 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|