a python script which will parse an email message
chuck amadi
chuck.amadi at ntlworld.com
Mon May 31 11:34:18 EDT 2004
chuck amadi wrote:
> (Please include python-list/comp.lang.python on your mails. You'll
> get more
> useful feedback.)
>
> chuck> Hi Skip used your snippet - the above returns a
>
> chuck> Returned mail: see transcript for details
> chuck> Returned mail: see transcript for details
>
> Assuming those are the subjects of the messages in
> /var/spool/mail/chucka,
> that looks fine.
>
> chuck> The second snippet - returns
> chuck> <open file '/tmp/subjects', mode 'w' at 0x3fcf0ea0> Returned
> mail: see chuck> transcript for details
> chuck> <open file '/tmp/subjects', mode 'w' at 0x3fcf0ea0> Returned
> mail: see chuck> transcript for details
> chuck> When i less /tmp/subjects theres no data.
>
> What version of Python are you using? Maybe it's so old it doesn't
> support
> the
> print >> openfile, ...
>
> construct, though if not, I'd expect a SyntaxError. Did you forget the
> ">>"?
>
> Skip
Yes I did but ran two versions .
My version of python ruiing python -V is python 2.3 I will obviously
check the version Im running on the mounted file server as opposed to my
local machine which is also python 2.3
Cheers for your help by the way I have been reading Python Standard
Library , Programming Python and Learning Python by O'Reilly So I will
get the hang of this.
off for a bath with Learning Python as my partner .
Cheers all.
>
>
>
>
More information about the Python-list
mailing list