Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to run email-unpack.py from the Email Message Module.

Reply
Thread Tools

How to run email-unpack.py from the Email Message Module.

 
 
Chuck Amadi
Guest
Posts: n/a
 
      06-03-2004
Im running $ python email-unpack.py -d /home/chuck/surveyResults
What parameters do I use I have tried substituting msgfile fp = open(msgfile)
for my given path (/home/chuck/Mail/Inobx) still no joy please explain what im
missing Im using the example from

http://www.python.org/doc/current/lib/node510.html

unpackmail ins't a command So using [option] and msgfile
</home/chuck/Mailo/Inbox>

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





 
Reply With Quote
 
 
 
 
fishboy
Guest
Posts: n/a
 
      06-06-2004
On Thu, 03 Jun 2004 15:08:21 +0100, Chuck Amadi <>
wrote:

>Im running $ python email-unpack.py -d /home/chuck/surveyResults
>What parameters do I use I have tried substituting msgfile fp = open(msgfile)
>for my given path (/home/chuck/Mail/Inobx) still no joy please explain what im
>missing Im using the example from
>


Wild guess. Try executing the script directly:

chmod 755 email-unpack.py
../email-unpack.py -d /home/chuck/surveyResults

><{{{*>


 
Reply With Quote
 
 
 
 
chuck amadi
Guest
Posts: n/a
 
      06-06-2004
fishboy wrote:

>On Thu, 03 Jun 2004 15:08:21 +0100, Chuck Amadi <>
>wrote:
>
>
>
>>Im running $ python email-unpack.py -d /home/chuck/surveyResults
>>What parameters do I use I have tried substituting msgfile fp = open(msgfile)
>>for my given path (/home/chuck/Mail/Inobx) still no joy please explain what im
>>missing Im using the example from
>>
>>
>>

>
>Wild guess. Try executing the script directly:
>
>chmod 755 email-unpack.py
>./email-unpack.py -d /home/chuck/surveyResults
>
>
>
>><{{{*>
>>
>>

>Cheers I will try that.Even though I may use the hack script .
>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Strange effects using the email.message.Message class Rogério Brito Python 1 09-09-2009 04:19 AM
Why don't links open from an email message or a news group message? Jeff Strickland Computer Information 9 04-10-2008 08:02 PM
Run your own Auction Site, Pay per click directory, Google groups email harvestor, Email spider now Auction software Python 0 06-26-2004 11:25 PM
[python] Figured out how to go from email.Message.Message to string David Stockwell Python 1 06-17-2004 08:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57