mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
do not encrypt if alias disables PGP
This commit is contained in:
parent
13bb9810b6
commit
f35b9e7542
@ -389,7 +389,7 @@ def forward_email_to_mailbox(
|
|||||||
return False, "550 SL E1"
|
return False, "550 SL E1"
|
||||||
|
|
||||||
# create PGP email if needed
|
# create PGP email if needed
|
||||||
if mailbox.pgp_finger_print and user.is_premium():
|
if mailbox.pgp_finger_print and user.is_premium() and not alias.disable_pgp:
|
||||||
LOG.d("Encrypt message using mailbox %s", mailbox)
|
LOG.d("Encrypt message using mailbox %s", mailbox)
|
||||||
msg = prepare_pgp_message(msg, mailbox.pgp_finger_print)
|
msg = prepare_pgp_message(msg, mailbox.pgp_finger_print)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user