simple script to read and output Mailbox body to file.
chuck.amadi at ntlworld.com
Tue Jun 8 08:22:17 CEST 2004
William Park wrote:
>Chuck Amadi <chuck at smtl.co.uk> wrote:
>>Sorry to bovver you again (again) here's script.
>>I still can't see why the get_payload() doesn't produce
>>the plain text message body of an emails in the testwwws users mailbox.
>>As you can see I have tried a few things but no joy what am I missing.
>>Is the another snippet in relation to get_payload to access the body
>>contents print and process to a file.
>You still haven't answered central questions.
> - Do you want email bodies in separate files, or all email bodies in
> one file?
> - Do you want to collect these email bodies as they come in, or
> periodically from a 'mbox' file?
Hi There ,
I would like all email bodies in one file.Collect these email bodies as they come in, or periodically from a 'mbox' file? using cron.
I would lie cron to run the script and empty the mail user box in question to a file for extraction to a database.
More information about the Python-list