Message358343
I'm working on a mailfilter in python and used the method "get_filename" of the "EmailMessage" class.
In some cases a wrong filename was returned. The reason was, that the Content-Disposition Header had a line break and the following intention was interpreted as part of the filename.
After fixing this bug, I was able to get the right filename.
I had to change "linesep_splitter" in "email.policy" to match the intention.
Old Value:
linesep_splitter = re.compile(r'\n|\r')
New Value:
linesep_splitter = re.compile(r'\n\s+|\r\s+') |
|
Date |
User |
Action |
Args |
2019-12-13 16:59:51 | mkaiser | set | recipients:
+ mkaiser, barry, r.david.murray |
2019-12-13 16:59:51 | mkaiser | set | messageid: <1576256391.68.0.734335189474.issue39040@roundup.psfhosted.org> |
2019-12-13 16:59:51 | mkaiser | link | issue39040 messages |
2019-12-13 16:59:51 | mkaiser | create | |
|