python: enable certificate checks in cloned accounts

This commit is contained in:
link2xt
2022-06-26 12:21:12 +00:00
parent 8533057881
commit 839021f9eb
2 changed files with 3 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
### Fixes ### Fixes
- improved error handling for account setup from qrcode #3474 - improved error handling for account setup from qrcode #3474
- python: enable certificate checks in cloned accounts #3443
## 1.92.0 ## 1.92.0

View File

@@ -497,6 +497,8 @@ class ACFactory:
configdict = dict( configdict = dict(
addr=cloned_from.get_config("addr"), addr=cloned_from.get_config("addr"),
mail_pw=cloned_from.get_config("mail_pw"), mail_pw=cloned_from.get_config("mail_pw"),
imap_certificate_checks=cloned_from.get_config("imap_certificate_checks"),
smtp_certificate_checks=cloned_from.get_config("smtp_certificate_checks"),
) )
configdict.update(kwargs) configdict.update(kwargs)
ac = self._get_cached_account(addr=configdict["addr"]) if cache else None ac = self._get_cached_account(addr=configdict["addr"]) if cache else None