Fix PGP/MIME layout in publish response
This commit is contained in:
parent
c83c02cedd
commit
0f8ce0a476
1 changed files with 2 additions and 3 deletions
|
@ -217,9 +217,8 @@ Encrypt live everybody is.
|
||||||
encrypted: PGPMessage = self.key.encrypt(to_encrypt)
|
encrypted: PGPMessage = self.key.encrypt(to_encrypt)
|
||||||
encrypted |= pgp_sign(self.domain, encrypted)
|
encrypted |= pgp_sign(self.domain, encrypted)
|
||||||
payload = MIMEApplication(str(encrypted), _subtype='octet-stream')
|
payload = MIMEApplication(str(encrypted), _subtype='octet-stream')
|
||||||
mpenc = MIMEApplication(payload.as_string(policy=default), _subtype='pgp-encrypted')
|
mpenc = MIMEApplication('Version: 1\r\n', _subtype='pgp-encrypted')
|
||||||
mpenc['Version'] = '1'
|
email = MIMEMultipart(_subtype='encrypted', _subparts=[mpenc, payload], policy=default,
|
||||||
email = MIMEMultipart(_subtype='encrypted', _subparts=[mpenc], policy=default,
|
|
||||||
protocol='application/pgp-encrypted')
|
protocol='application/pgp-encrypted')
|
||||||
email['Subject'] = 'Your key has been published'
|
email['Subject'] = 'Your key has been published'
|
||||||
email['To'] = self.submitter_address
|
email['To'] = self.submitter_address
|
||||||
|
|
Loading…
Reference in a new issue