Cleanup unused mimetypes

pull/9/head
Raphaël Vinot 2016-05-17 11:50:34 +02:00
parent c4af907345
commit fda900afc8
2 changed files with 12 additions and 24 deletions

View File

@ -245,13 +245,15 @@ class KittenGroomerFileCheck(KittenGroomerBase):
''' This main type is unknown, that should not happen '''
self.cur_file.log_string += 'Unknown file'
# ##### Threated as malicious, no reason to have it on a USB key ######
def example(self):
'''Way to process example file'''
'''Used in examples, should never be returned by libmagic'''
self.cur_file.log_string += 'Example file'
self.cur_file.make_dangerous()
self._safe_copy()
def multipart(self):
'''Used in web apps, should never be returned by libmagic'''
self.cur_file.log_string += 'Multipart file'
# ##### Threated as malicious, no reason to have it on a USB key ######
def message(self):
'''Way to process message file'''
self.cur_file.log_string += 'Message file'
@ -264,14 +266,6 @@ class KittenGroomerFileCheck(KittenGroomerBase):
self.cur_file.make_dangerous()
self._safe_copy()
def multipart(self):
'''Way to process multipart file'''
self.cur_file.log_string += 'Multipart file'
self.cur_file.make_dangerous()
self._safe_copy()
#######################
# ##### Converted ######
def text(self):
for r in mimes_rtf:

View File

@ -187,13 +187,15 @@ class KittenGroomer(KittenGroomerBase):
''' This main type is unknown, that should not happen '''
self.cur_file.log_string += 'Unknown file'
# ##### Threated as malicious, no reason to have it on a USB key ######
def example(self):
'''Way to process example file'''
'''Used in examples, should never be returned by libmagic'''
self.cur_file.log_string += 'Example file'
self.cur_file.make_dangerous()
self._safe_copy()
def multipart(self):
'''Used in web apps, should never be returned by libmagic'''
self.cur_file.log_string += 'Multipart file'
# ##### Threated as malicious, no reason to have it on a USB key ######
def message(self):
'''Way to process message file'''
self.cur_file.log_string += 'Message file'
@ -206,14 +208,6 @@ class KittenGroomer(KittenGroomerBase):
self.cur_file.make_dangerous()
self._safe_copy()
def multipart(self):
'''Way to process multipart file'''
self.cur_file.log_string += 'Multipart file'
self.cur_file.make_dangerous()
self._safe_copy()
#######################
# ##### Converted ######
def text(self):
''' LibreOffice should be able to open all the files '''