فهرست منبع

do not encrypt if alias disables PGP

Son NK 5 سال پیش
والد
کامیت
f35b9e7542
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -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)