aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mailman_pgp/pgp/mime.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman_pgp/pgp/mime.py b/src/mailman_pgp/pgp/mime.py
index afb1c35..1ecbe76 100644
--- a/src/mailman_pgp/pgp/mime.py
+++ b/src/mailman_pgp/pgp/mime.py
@@ -181,9 +181,9 @@ class MIMEWrapper:
_subtype=MIMEWrapper._signature_subtype,
_encoder=encode_7or8bit,
name='signature.asc')
- second_part.add_header('content-description',
+ second_part.add_header('Content-Description',
'OpenPGP digital signature')
- second_part.add_header('content-disposition', 'attachment',
+ second_part.add_header('Content-Disposition', 'attachment',
filename='signature.asc')
out.attach(copy.deepcopy(msg))
@@ -249,16 +249,16 @@ class MIMEWrapper:
first_part = MIMEApplication(_data='Version: 1',
_subtype=MIMEWrapper._encryption_subtype,
_encoder=encode_7or8bit)
- first_part.add_header('content-description',
+ first_part.add_header('Content-Description',
'PGP/MIME version identification')
second_part = MIMEApplication(_data=str(payload),
_subtype='octet-stream',
_encoder=encode_7or8bit,
name='encrypted.asc')
- second_part.add_header('content-description',
+ second_part.add_header('Content-Description',
'OpenPGP encrypted message')
- second_part.add_header('content-disposition', 'inline',
+ second_part.add_header('Content-Disposition', 'inline',
filename='encrypted.asc')
out.attach(first_part)
out.attach(second_part)