Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > A question about creating Maildir mailboxes with mailbox.Maildir

Reply
Thread Tools

A question about creating Maildir mailboxes with mailbox.Maildir

 
 
tinnews@isbd.co.uk
Guest
Posts: n/a
 
      04-03-2008
I have mail delivered into Maildirs which live in a directory
hierarchy as follows:-

/home/isbd/Mail/Li/<name of maildir>
/home/isbd/Mail/In/<name of maildir>

Note that neither /home/isbd/Mail/Li nor /home/isbd/Mail/In are
Maildir mailboxes. How do I create a new Maildir mailbox in either Li
or In with mailbox.Maildir.add_folder()?

If I have created an instance of Maildir with:-

md = mailbox.Maildir("/home/isbd/Mail/Li")

that implies that /home/isbd/Mail/Li is a Maildir, which it isn't, and
anyway the above fails because it can't see the new, cur and tmp
directories in /home/isbd/Mail/Li.


It seems that the Python Maildir implementation assumes a Courier
style (probably IMAP) Maildir hierarchy with an INBOX and using dots
rather than real directories to create sub-directories.

I don't have an INBOX or any sort of 'home' maildir, it's most
definitely not a requirement of maildir.

--
Chris Green
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mailbox.Maildir question/problem tinnews@isbd.co.uk Python 2 12-14-2007 10:01 AM
mailbox module, Maildir, and flags jesse.k.rosenthal@gmail.com Python 0 09-11-2007 12:29 AM
maildir->mbox conversion script review matej Python 0 01-09-2007 11:57 PM
Can I get message filename from a Maildir mailbox stream? noah@noah.org Python 3 02-22-2005 11:59 PM
mailbox.py examples (Maildir) Matej Cepl Python 1 08-06-2003 08:36 PM



Advertisments