I try to get some tnef data information, but atm i have to remove nullbytes by myself.
Is there a other way to get the same information without nullbytes, or is this is a bug?
for tnef_attachment in tnef.attachments:
for mapi_attr in tnef_attachment.mapi_attrs:
if mapi_attr.name == tnefparse.TNEFMAPI_Attribute.MAPI_ATTACH_MIME_TAG:
mimetype = mapi_attr.data[0].rstrip(b'\x00')
I try to get some tnef data information, but atm i have to remove nullbytes by myself. Is there a other way to get the same information without nullbytes, or is this is a bug?