Fix problem with previous commit.
This commit is contained in:
parent
4aa366dea5
commit
9bd941b752
1 changed files with 3 additions and 3 deletions
|
@ -82,10 +82,10 @@ def encrypt_all_payloads( message, gpg_to_cmdline ):
|
|||
return encrypt_payload( message, gpg_to_cmdline ).get_payload()
|
||||
for payload in message.get_payload():
|
||||
if( type( payload.get_payload() ) == list ):
|
||||
encrypted_payloads.extend( encrypt_all_payloads( payload, gpg_to_cmdline ) )
|
||||
encrypted_payloads.append( encrypt_all_payloads( payload, gpg_to_cmdline ) )
|
||||
else:
|
||||
encrypted_payloads.append( [encrypt_payload( payload, gpg_to_cmdline )] )
|
||||
return sum(encrypted_payloads, [])
|
||||
encrypted_payloads.append( encrypt_payload( payload, gpg_to_cmdline ) )
|
||||
return encrypted_payloads
|
||||
|
||||
def get_msg( message ):
|
||||
if not message.is_multipart():
|
||||
|
|
Loading…
Reference in a new issue