Python email-dir.py help

Chuck Amadi chuck at smtl.co.uk
Thu Jun 3 18:53:43 CEST 2004


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


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

chuck at 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 at sevenofnine:~>python email-dir.py -d /home/chuck/Mail/Inbox

chuck at 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










More information about the Python-list mailing list