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 doko
Recipients
Date 2006-10-03.08:16:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
[forwarded from http://bugs.debian.org/384512]

the factory defines what class the mails have that are
returned.

So for two nested folders a and a.b, the following code
will return
messages with two different classes:

# factory = None to get mailbox.MaildirMessage objects
md = mailbox.Maildir("a", factory=None)
print md["somemessage"].__class__
# will print mailbox.MaildirMessage
md2 = md.get_folder("b")
print md2["someothermessage"].__class__
# will print rfc822.Message

i.e. the factory= parameter passed to the outer Maildir
class upon
creation is not passed on to the subfolder creation in
get_folder()
History
Date User Action Args
2007-08-23 14:43:24adminlinkissue1569790 messages
2007-08-23 14:43:24admincreate