Import from PST attachment with encoding in the file name.

Issue #420 resolved
Former user created an issue

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)

  1. Janos SUTO repo owner

    Thanks for noticing. Check out the master branch to see whether it fixes the issue or not.

  2. Log in to comment