def get_file_mimetype (filename):
    """Return the mimetype string for this file"""
    result = None
    if MIME_MAGIC:
        try:
            result = MIME_MAGIC.file(filename)
        except __HOLE__:
            pass
    return result
dataset/ETHPy150Open dpapathanasiou/intelligent-smtp-responder/utils/emailer.py/get_file_mimetype