Decoding MIME email

Tim Roberts timr at
Thu Aug 28 05:43:38 CEST 2003

Thomas Williams <tom_williams_2000_ca at> wrote:
>Thanks, I tried it and it stop at:
>f = file("mail.txt")
>with the error message. 
>TypeError: 'str' object is not callable

I'll wager you have a line something like this before that:

  file = sys.argv[0]
  f = file("mail.txt")

Either do not use variables called "file", or replace the "file" with
"open" in your function call.
- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list