Skip to content

Commit

Permalink
#545 ensure to find specific part of the mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Feb 11, 2020
1 parent adbd709 commit e9790e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions analyzers/FileInfo/submodules/submodule_outlook.py
Expand Up @@ -16,8 +16,10 @@ def __init__(self):

def check_file(self, **kwargs):
try:
if kwargs.get('mimetype') in ['application/vnd.ms-outlook', 'application/CDFV2-unknown']:
return True
msg_mimetypes = ['application/vnd.ms-outlook', 'application/CDFV2-unknown']
for m in msg_mimetypes:
if kwargs.get('mimetype').find(m) == 0:
return True
except KeyError:
return False
return False
Expand Down

0 comments on commit e9790e6

Please sign in to comment.