This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taka2ru
Recipients
Date 2006-11-21.03:33:32
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
mailbox.Maildir.get_folder does not inherit _factory.

>>> import mailbox
>>> 
>>> mbox = mailbox.Maildir('/home/xxx/Maildir', mailbox.MaildirMessage)
>>> 
>>> subfolder = mbox.get_folder(mbox.list_folders()[0])
>>> 
>>> for key, mail in subfolder.iteritems():
>>>     print mail.__class__
>>>     break

from this example, i got the following output:
rfc822.Message

'mailbox.MaildirMessage' should be gotten instead.
History
Date User Action Args
2007-08-23 14:50:10adminlinkissue1600152 messages
2007-08-23 14:50:10admincreate