nullbytes in data
TZanke opened this issue · 2 comments
TZanke commented
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')
petri commented
Is this on PyPI release or current master? Also, can you provide an example file to test this on?
TZanke commented
correction:
has traling null also in Ubuntu tested with master.