Wording: rename refused email to Quarantine

This commit is contained in:
Son NK 2020-03-17 09:43:12 +01:00 committed by Son NK
parent 130abc2220
commit 053802b5ae
2 changed files with 21 additions and 10 deletions

View file

@ -1,20 +1,22 @@
{% extends 'default.html' %} {% extends 'default.html' %}
{% block title %} {% block title %}
Refused Emails Quarantine
{% endblock %} {% endblock %}
{% set active_page = "setting" %} {% set active_page = "setting" %}
{% block default_content %} {% block default_content %}
<div style="max-width: 60em; margin: auto"> <div style="max-width: 60em; margin: auto">
<h1 class="h3 mb-5"> Refused Emails </h1> <h1 class="h3 mb-5"> Quarantine </h1>
<div class="alert alert-info"> <div class="alert alert-info">
This page shows all emails that have been <b>refused</b> (or bounced) by your mailbox. <br> This page shows all emails that are potentially spams or malicious.
Usually this is because your mailbox thinks these emails are <b>spams</b>. <br> Usually these emails have been <b>refused</b> (or bounced) by your mailbox. <br>
- If a refused email is indeed spam, this means the alias is now in the hands of a spammer,
- If an email is indeed spam, this means the alias is now in the hands of a spammer,
in this case you should <b>disable</b> this alias. <br> in this case you should <b>disable</b> this alias. <br>
- Otherwise, you should create a <b>filter</b> to avoid your email provider from blocking these emails. <br> - 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. <a href="mailto:hi@simplelogin.io">Contact us↗</a> if you need any help.
@ -22,23 +24,32 @@
{% if fels|length == 0 %} {% if fels|length == 0 %}
<div class="my-4 p-4 card"> <div class="my-4 p-4 card">
You don't have any refused email. You don't have any emails in Quarantine.
</div> </div>
{% endif %} {% endif %}
{% for fel in fels %} {% for fel in fels %}
{% set refused_email = fel.refused_email %} {% set refused_email = fel.refused_email %}
{% set forward = fel.forward %} {% set forward = fel.forward %}
{% set gen_email = forward.gen_email %}
<div class="card p-4 shadow-sm {% if fel.id == highlight_fel_id %} highlight-row {% endif %}"> <div class="card p-4 shadow-sm {% if fel.id == highlight_fel_id %} highlight-row {% endif %}">
From: {{ forward.website_from or forward.website_email }} <br>
To: {{ forward.gen_email.email }} <br>
<div class="small-text"> <div class="small-text">
Sent {{ refused_email.created_at | dt }} Sent {{ refused_email.created_at | dt }}
</div> </div>
From: {{ forward.website_from or forward.website_email }} <br>
<span>
To: {{ gen_email.email }}
<a href='{{ url_for("dashboard.index", highlight_gen_email_id=gen_email.id) }}'
class="btn btn-sm btn-outline-danger">Disable Alias</a>
</span>
{% if refused_email.deleted %} {% if refused_email.deleted %}
<div>
Email deleted {{ refused_email.delete_at | dt }} Email deleted {{ refused_email.delete_at | dt }}
</div>
{% else %} {% else %}
<a href="{{ refused_email.get_url() }}" download <a href="{{ refused_email.get_url() }}" download
class="mt-4">Download →</a> class="mt-4">Download →</a>

View file

@ -185,7 +185,7 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="card-title">Refused Emails <div class="card-title">Quarantine
<div class="small-text mt-1 mb-3" style="max-width: 40rem"> <div class="small-text mt-1 mb-3" style="max-width: 40rem">
When an email sent to your alias is classified as spam or refused by your email provider, When an email sent to your alias is classified as spam or refused by your email provider,
it usually means your alias has been leaked to a spammer. <br> it usually means your alias has been leaked to a spammer. <br>