Python email-dir.py help

C

Chuck Amadi

Howto to run email-dir.py from the example with the correct parameters .


chuck@sevenofnine:~>python email-dir.py -d /home/chuck/Mail/Inbox msgfile get
the following error .

chuck@sevenofnine:~> python email-dir.py msgfile
Traceback (most recent call last):
File "email-dir.py", line 83, in ?
main()
File "email-dir.py", line 58, in main
fp = open(msgfile)
IOError: [Errno 2] No such file or directory: 'msgfile'

chuck@sevenofnine:~>python email-dir.py -d /home/chuck/Mail/Inbox

chuck@sevenofnine:~>python email-dir.py

Thus get this prompt>

Unpack a MIME message into a directory of files.

Usage: unpackmail [options] msgfile

Options:
-h / --help
Print this message and exit.

-d directory
--directory=directory
Unpack the MIME message into the named directory, which will be
created if it doesn't already exist.

msgfile is the path to the file containing the MIME message.

Cheers Sorry for sounding thick please point me in the right direction on
howto to use the python script.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top