Don't overwrite CTE
We rely on Content Manager to select the right Content-Transfer-Encoding.
This commit is contained in:
parent
1acb330c02
commit
285f5dbf18
1 changed files with 1 additions and 6 deletions
|
@ -139,14 +139,9 @@ def _gpg_encrypt_and_deliver(message: EmailMessage, keys, recipients, encrypt_f)
|
|||
|
||||
|
||||
def _customise_headers(message: EmailMessage):
|
||||
if conf.config_item_equals('default', 'add_header', 'yes'):
|
||||
if conf.flag_enabled('default', 'add_header'):
|
||||
message['X-GPG-Mailgate'] = 'Encrypted by GPG Mailgate'
|
||||
|
||||
if 'Content-Transfer-Encoding' in message:
|
||||
message.replace_header('Content-Transfer-Encoding', '8BIT')
|
||||
else:
|
||||
message['Content-Transfer-Encoding'] = '8BIT'
|
||||
|
||||
|
||||
def _load_keys():
|
||||
"""Return a map from a key's fingerprint to email address."""
|
||||
|
|
Loading…
Reference in a new issue