2020-03-14 15:10:09 +00:00
|
|
|
{% extends 'default.html' %}
|
|
|
|
|
|
|
|
{% block title %}
|
2020-03-17 08:43:12 +00:00
|
|
|
Quarantine
|
2020-03-14 15:10:09 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% set active_page = "setting" %}
|
|
|
|
|
|
|
|
{% block default_content %}
|
|
|
|
<div style="max-width: 60em; margin: auto">
|
2020-03-17 08:43:12 +00:00
|
|
|
<h1 class="h3 mb-5"> Quarantine </h1>
|
2020-03-14 15:10:09 +00:00
|
|
|
|
2020-03-15 17:06:57 +00:00
|
|
|
<div class="alert alert-info">
|
2020-03-17 08:43:12 +00: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 17:06:57 +00:00
|
|
|
in this case you should <b>disable</b> this alias. <br>
|
2020-03-17 08:43:12 +00:00
|
|
|
|
2020-03-15 17:06:57 +00: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-14 15:10:09 +00:00
|
|
|
{% if fels|length == 0 %}
|
|
|
|
<div class="my-4 p-4 card">
|
2020-03-17 08:43:12 +00:00
|
|
|
You don't have any emails in Quarantine.
|
2020-03-14 15:10:09 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for fel in fels %}
|
|
|
|
{% set refused_email = fel.refused_email %}
|
|
|
|
{% set forward = fel.forward %}
|
2020-03-17 10:51:40 +00:00
|
|
|
{% set alias = forward.alias %}
|
2020-03-14 15:10:09 +00:00
|
|
|
|
|
|
|
<div class="card p-4 shadow-sm {% if fel.id == highlight_fel_id %} highlight-row {% endif %}">
|
|
|
|
<div class="small-text">
|
|
|
|
Sent {{ refused_email.created_at | dt }}
|
|
|
|
</div>
|
|
|
|
|
2020-03-17 08:43:12 +00:00
|
|
|
From: {{ forward.website_from or forward.website_email }} <br>
|
|
|
|
|
|
|
|
<span>
|
2020-03-17 10:51:40 +00:00
|
|
|
To: {{ alias.email }}
|
|
|
|
<a href='{{ url_for("dashboard.index", highlight_alias_id=alias.id) }}'
|
2020-03-17 08:43:12 +00:00
|
|
|
class="btn btn-sm btn-outline-danger">Disable Alias</a>
|
|
|
|
</span>
|
|
|
|
|
2020-03-15 10:14:58 +00:00
|
|
|
{% if refused_email.deleted %}
|
2020-03-17 08:43:12 +00:00
|
|
|
<div>
|
|
|
|
Email deleted {{ refused_email.delete_at | dt }}
|
|
|
|
</div>
|
2020-03-15 10:14:58 +00:00
|
|
|
{% else %}
|
2020-03-15 17:06:57 +00:00
|
|
|
<a href="{{ refused_email.get_url() }}" download
|
|
|
|
class="mt-4">Download →</a>
|
2020-03-15 10:14:58 +00:00
|
|
|
<div class="small-text">This will download a ".eml" file that you can open in your favorite email client</div>
|
|
|
|
{% endif %}
|
2020-03-14 15:10:09 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|