Bugs item #1569790, was opened at 2006-10-03 10:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1569790&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: Matthias Klose (doko) Assigned to: Nobody/Anonymous (nobody) Summary: mailbox.Maildir.get_folder() loses factory information Initial Comment: [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() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1569790&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com