Import from PST attachment with encoding in the file name.
Issue #420
resolved
I have converted several PST files to mbox to import in piler.
All messages were imported correctly, but some attachments' names became:
utf-8''ATT00196.jpg
utf-8''ATT00193.jpg
Instead this:
ATT00196.jpg
ATT00193.jpg
In the EML file, the filename contains the encoding:
...
----boundary-LibPST-iamunique-725512322_-_-
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename*=utf-8''ATT00196.jpg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
...
It's related to the RFC 5987. http://tools.ietf.org/html/rfc5987
The parser is not aware of this possibility.
Thanks.
Comments (5)
-
Account Deleted -
Account Deleted - edited description
-
repo owner Thanks for noticing. Check out the master branch to see whether it fixes the issue or not.
-
Account Deleted It did the trick. Working now.
Thanks.
-
Account Deleted - changed status to resolved
Fixed by commit cd53d12
- Log in to comment
I changed all attachment names in the database using SQL, is there a problem?