koodaamo / tnefparse

a TNEF decoding library written in python, without external dependencies
GNU Lesser General Public License v3.0
49 stars 37 forks source link

Filenames are truncated #53

Closed skylord123 closed 4 years ago

skylord123 commented 5 years ago

When you run with the --attachments argument the files are using the truncated name instead of the full name. This is a problem for my use case. Can we either get an option to use the long_filename or just make this the default?

In my example the filename was decemberpermits14.pdf but was being truncated to decemb~1.pdf.

Thanks!

Beercow commented 5 years ago

Submitted a pull request to fix this. Try it and let me know if it works for you.

skylord123 commented 5 years ago

Works perfectly. File names are no longer truncated.

Thanks for the quick help!

skylord123 commented 5 years ago

I saw some extra commits on your pull request, are these an attempt to fix #52 ?

Beercow commented 5 years ago

Yes. The other commits are to fix #52 also. I have tested this on Windows with python 2.7.15 and python 3.6.1

petri commented 4 years ago

Thanks. PR merged.