Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions workflows/Ews2Case.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ def connectEws():
#inline attachments are pictures in the email body
tmpFilepath = tempAttachment.writeFile()
to = str()
for recipient in msg.to_recipients:
to = to + recipient.email_address + ' '
if msg.to_recipients:
for recipient in msg.to_recipients:
to = to + recipient.email_address + ' '
else:
to = '<undisclosed recipients>'
comment = 'Attachment from email sent by '
comment += str(msg.author.email_address).lower()
comment += ' and received by '
Expand Down