Closed lgwapnitsky closed 12 years ago
even does this via pip install
ahh...no tnef library....
got it to work by pointing my project to the folder where tnef.py is, but now getting this:
pydev debugger: starting Wrong TNEF signature: 0x6d6f682f
when initializing my file as tnef.TNEF("winmaill.dat") with a valid file.
fixed that(file read), but valid winmail.dat file shows no attachments. verified that this file DOES have attachments.
thanks for reporting! There was a bug remaining in the entry point definition, from back when I refactored the pkg. It's now fixed in master, so invoking 'tnefparse' should no longer result in error.
I see that you then used the tnef.TNEF module directly and succeeded in reading your tnef file, but the code did not find your attachments. Can you please open a new issue for that?
tried running the tnefparse utility prior to including this in my own script, but am receiving the following errors:
[/home/lwapnitsky/git/tnefparse]% tnefparse (10:02 - 12-05-29) Traceback (most recent call last): File "/usr/local/bin/tnefparse", line 9, in
load_entry_point('tnefparse==1.1', 'console_scripts', 'tnefparse')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
entry = import(self.module_name, globals(),globals(), ['name'])
ImportError: No module named tnef.cmdline
This was installed using python setup.py install using python 2.7 on Debian Wheezy