include_sender_in_reverse_alias set to true for new users (#1244)

This commit is contained in:
Son Nguyen Kim 2022-08-23 11:24:49 +02:00 committed by GitHub
parent b299a305b5
commit 9eacd980ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 7 deletions

View File

@ -424,7 +424,7 @@ class User(Base, ModelMixin, UserMixin, PasswordOracle):
# whether to include the sender address in reverse-alias
include_sender_in_reverse_alias = sa.Column(
sa.Boolean, default=False, nullable=False, server_default="0"
sa.Boolean, default=True, nullable=False, server_default="0"
)
# whether to use random string or random word as suffix

4
static/style.css vendored
View File

@ -213,4 +213,8 @@ textarea.parsley-error {
}
.middle-line:after {
margin-left: 10px
}
.italic {
font-style: italic;
}

View File

@ -71,6 +71,14 @@
</form>
</div>
<!-- END Change email -->
{% if mailbox.pgp_finger_print and not mailbox.disable_pgp and current_user.include_sender_in_reverse_alias %}
<div class="alert alert-info">
Email headers like <span class="italic">From, To, Subject</span> aren't encrypted by PGP.
Currently, your reverse alias includes the sender address.
You can disable this on <a href="/dashboard/setting#sender-in-ra">Settings</a>.
</div>
{% endif %}
<div class="card">
<div class="card-body">
<div class="card-title">

View File

@ -441,13 +441,11 @@
Include sender address in reverse-alias
</div>
<div class="mb-3">
By default, the reverse-alias is randomly generated and doesn't contain any information about
the sender.
If this option is enabled, new reverse-alias will include the sender address (e.g. <span class="italic">sender_domain_com_gibberish@simplelogin.co</span>)
so you can quickly know the sender.
<br />
Enabling this option will include the sender address in the reverse-alias.
<br />
This can be useful if you want to set up email filters based on the reverse-alias.
It will also make the reverse-alias more readable.
If disabled, a new reverse-alias will be randomly generated.
Please note that existing reverse-aliases won't change.
</div>
<form method="post" action="#sender-in-ra">
<input type="hidden" name="form-name" value="sender-in-ra">