[Dovecot] conversion to maildir

Timo Sirainen tss at iki.fi
Tue Aug 26 23:12:37 EEST 2003


On Tue, 2003-08-26 at 22:55, Eric S. Johansson wrote:
> > Next Dovecot version will support both mboxes and maildir. That could do
> > it at least one mailbox at a time.
> 
> I wonder if we're both envisioning the same thing?

I think you were talking about two things - mbox2maildir script first
and then the automatic thingy.

> in addition to my ramblings above, seems to me that might be more practical to 
> specify a "magic" directory addition to the imap directory representation which 
> contains the hierarchy of mbox files which would allow users to copy and then 
> delete mboxes to convert formats.

That's what I meant with being possible with next version:

namespace private {
  separator = /
  prefix = #mbox/
  location = mbox:~/mail
}

> > We'd need a Python plugin :) I don't think it was difficult to export C
> > stuff from .h files to Python using some tool .. which I can't remember
> > anymore.
> > 
> http://psyco.sourceforge.net/
> 
> but it's not all that you need.  You want to embed python in dovecot and find a 
> way to invoke dovecot functions mailbox from python.

I was thinking about SWIG. http://www.swig.org/

You'd mostly just need to convert src/lib-storage/mail-storage.h,
imap/client.h and imap/commands-util.h. Maybe some of lib-imap/*.h and
lib-mail/*.h




More information about the dovecot mailing list