Author serhiy.storchaka
Recipients barry, louielu, r.david.murray, serhiy.storchaka, webknjaz
Date 2017-04-17.11:12:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492427548.05.0.431770822725.issue30088@psf.upfronthosting.co.za>
In-reply-to
Content
I concur with David. Rather than using a temporary directory as a Maildir folder:

    with tempfile.TemporaryDirectory() as tmpdir:
        with mailbox.Maildir(tmpdir, create=True) as box:
            ...

create a Maildir folder in a temporary directory:

    with tempfile.TemporaryDirectory() as tmpdir:
        with mailbox.Maildir(os.path.join(tmpdir, 'mail'), create=True) as box:
            ...
History
Date User Action Args
2017-04-17 11:12:28serhiy.storchakasetrecipients: + serhiy.storchaka, barry, r.david.murray, webknjaz, louielu
2017-04-17 11:12:28serhiy.storchakasetmessageid: <1492427548.05.0.431770822725.issue30088@psf.upfronthosting.co.za>
2017-04-17 11:12:28serhiy.storchakalinkissue30088 messages
2017-04-17 11:12:27serhiy.storchakacreate