-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: must be str, not NoneType in getEmailBody #4
Comments
Hey, Can you give more details ? |
I'm using Exchange 2010 OnPrem and the body was not empty. |
Can you give me more details about the body ? |
yes, we use rich text as format... picture mixed with html. |
Actually I would rather need the email itself. |
Same issue here. How would you like me to provide a sample email to you? |
I used the BeautifulSoup method and it successfully parsed the body of HTML, Rich and Plain Text emails. |
Could you send me the email at support[@]thehive-project[.]org Thanks |
@ninSmith You can use the two emails I emailed you yesterday. Both of those were successfully parsed by Synapse and sent to TheHive. |
Hi All, Have the same issue with O365.
|
As a temporary solution, I've added |
I tried to address this issue in the branch https://github.com/TheHive-Project/Synapse/tree/feature/4 Thanks in advance |
@ninSmith I experienced the same issue as the others as I run Exchange 2010. Now, how can we go about getting the URLs as observables? I have written something before that parses my messages and grabs urls and sends off to CISCO. Not sure how to incorporate such logic with TheHive though. Great job btw. I've been access email messages a very different way. Learned much. |
Changes to work with Exchange 2010 to address TheHive-Project#4 Kudos to @ninSmith for the majority of it. I've only added the import bs4
I got this error when trying to sync exchange email.
File "/opt/Synapse/workflows/Ews2Case.py", line 164, in getEmailBody
return ('
\n' + replyToInfo + body + '\n
')TypeError: must be str, not NoneType
I modify Ews2case.py code to return "... str(body)..." and worked.
Can anyone confirm if it is correct?.
Thanks in advance.
The text was updated successfully, but these errors were encountered: