how to change a factory use of rfc822.Message to mhlib.Message
atterdan at yahoo.com
Fri Aug 27 20:50:00 CEST 2004
I've never used a factory and would like to get some help.
mailbox.UnixMailbox has a defination for a factory.
__init__(self, fp, factory=<class rfc822.Message>)
where fp is a file pointer.
I don't want to use rfc822.Message. I'd like to use mhlib.Message instead.
__init__(self, fp, seekable=1)
__init__(self, f, n, fp=None)
where f think the is a folder name. I've seen '.' used.
(The documentation is very unclear here). And 'n' is the seekable.
How do I call mailbox.UnixMailbox( fp ... ) with mhlib.Message?
More information about the Python-list