Remove attachment content filter because it seems to make PGP-encrypted data invalid.

This commit is contained in:
perennate 2013-08-13 11:32:13 +08:00 committed by Igor Rzegocki
parent 04afea12cf
commit 5d8e8202a6
1 changed files with 0 additions and 2 deletions

View File

@ -69,8 +69,6 @@ def encrypt_payload( payload, gpg_to_cmdline ):
if payload.get_param( 'name' ) is not None:
payload.set_param( 'name', pgpFilename )
payload.set_payload( "\n".join( filter( lambda x:re.search(r'^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$',x), payload.get_payload().split("\n") ) ) )
if payload.get('Content-Transfer-Encoding') is not None:
payload.replace_header( 'Content-Transfer-Encoding', "quoted-printable" )