Bugfix: S/MIME worked only for one recipient because Python handles assignments of lists as call by object references. So the for-loop broke after first iteration.
This commit is contained in:
parent
ccbe8de7e5
commit
92d66a35a5
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ def to_smime_handler( raw_message, recipients = None ):
|
|||
s = SMIME.SMIME()
|
||||
sk = X509.X509_Stack()
|
||||
normalized_recipient = []
|
||||
unsmime_to = recipients
|
||||
unsmime_to = list(recipients)
|
||||
for addr in recipients:
|
||||
addr_addr = email.utils.parseaddr(addr)[1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue