On Wed, 17 Jan 2007, Mark Crispin wrote:

> The (still-unwritten) convert-to-mix tool will write multiple data files > instead of the single huge data file written by mailutil. Is it really unwritten? The scripts on http://andrew.triumf.ca/mbx/ (which were announced on this list a few months ago) seems to do the job, and are easy to modify if the original format isn't mix.

If I'm not mistaken, those scripts are based upon mailutil. mailutil can be used to convert; the probelm is that it writes a single giant data file instead of splitting it into MIXDATAROLL chunks. This is because mailutil does an atomic copy, per IMAP, and atomicity overrides MIXDATAROLL. Normally that is a good thing for copy, but not in conversion.

Have a look at the scripts. One of them is called mbxsplit, which spits the mxb file into smaller bits, which in turn are converted to mix. The first with "mailutil copy" the others with "mailutil append".

It would be trivial to make a general solution based on these scripts. mbxsplit is the part that would need most work, but the easiest way would be to use mailutil to convert to mbx before splitting.

I don't really see the need for a separate migration utility when we already have mailutil as the swiss knife utility.

/Per
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to