MaildirMessage

Tzury Afro.Systems at gmail.com
Fri Jul 13 02:46:32 CEST 2007


I am getting the following error when trying to iterate in a message
in a Maildir directory.
please help.

>>> from mailbox import Maildir, MaildirMessage
>>> mbox = Maildir('path/to/mailbox', create = False, factory = MaildirMessage)
>>> for msg in mbox:
...     for m in msg:
...             print m
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "email/message.py", line 286, in __getitem__
  File "email/message.py", line 352, in get
AttributeError: 'int' object has no attribute 'lower'
>>>




More information about the Python-list mailing list