Closed Munwalker closed 4 years ago
Just saw that the name (imbox/parser.py line 115) have a * at the end.
['inline', "filename*=utf-8''TEST%20mailing%20BA%203%2D10%E2%82%AC%20TEST%2008%2D2020%5FMise%20en%20page%201.pdf"]`
this cause the array s_name (imbox/parser.py line 119) to have an empty element. which then cause the insert (imbox/parser.py line 122) to fail.
I suggest that we remove empty element from this array :
s_name = list(filter(None, name.split("*")))
Just saw that this was fixed but not released:
s_name = name.rstrip('*').split("*")
Hi,
I came accross a ValueError during the parsing of a mail with attachement.
Error when inserting filename part, here :