Fully implemented the whatsapp parser

This commit is contained in:
U-BASIS\dsmyda
2019-09-15 12:21:05 -04:00
parent 611a03fa09
commit 7f2464a2e5
2 changed files with 238 additions and 52 deletions
+11
View File
@@ -26,3 +26,14 @@ class AndroidComponentAnalyzer:
# The Analyzer should implement this method
def analyze(self, dataSource, fileManager, context):
raise NotImplementedError
"""
A utility method to append list of attachments to msg body
"""
def appendAttachmentList(msgBody, attachmentsList):
body = msgBody
if attachmentsList:
body = body + "\n\n------------Attachments------------\n"
body = body + "\n".join(attachmentsList)
return body