simple script to read and parse mailbox
From: Chuck Amadi (chuck_at_smtl.co.uk)
Date: 06/07/04
- Next message: Tim Peters: "RE: how to get memory info from python?"
- Previous message: David Turner: "Destructors and exceptions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 07 Jun 2004 16:00:13 +0100 To: python-list@python.org
Hi again when I try /home/testwwws/Mail/work Mail folder I get the following error
sevenofnine:/data/tmp/pythonScriptMail # python getSurveyMail.py
Traceback (most recent call last):
File "getSurveyMail.py", line 34, in ?
fp = open("/home/testwwws/Mail/work")
IOError: [Errno 13] Permission denied: '/home/testwwws/Mail/work'
sevenofnine:/data/tmp/pythonScriptMail #
When I run the script as testwwws
sevenofnine:[pythonScriptMail] % python getSurveyMail.py
Traceback (most recent call last):
File "getSurveyMail.py", line 34, in ?
fp = open("/home/testwwws/Mail/work")
IOError: [Errno 21] Is a directory
sevenofnine:[pythonScriptMail] %
So what am I missing as I assumed that /var/spool/Mail/testwwws would generate all the email messages but I only need whats in the work Mail folder created using procmailrc .
Cheers
Chuck
- Next message: Tim Peters: "RE: how to get memory info from python?"
- Previous message: David Turner: "Destructors and exceptions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|