I'm trying to use mixcvt to convert existing mailboxes to mix format.
(mixcvt Apr 18 22:12, imap-2006h.DEV.SNAP-0704181512)
Things are fine when the source mailbox is 'mbx' but producing
strange results for 'mx' format.
I'm running mixcvt directly on the mail server, so the mailboxes
are local:
mixcvt /path/to/source/mx-mailbox /path/to/destination/mix-mailbox
The strange part of the results are that in the .mixdata files
the ':msg:' header has a valid UID but the date and size fields
are all wrong (start-of-epoch date and zero size)
EG :msg:0000049d:19700000000000+0000:00000000:
However in the .mixindex file the corresponding index line has
reasonable values
EG :0000049d:20040910135017+0000:000003d3:462d53d5:00000000:0000002d:000002d3:
It looks like the 'mx' driver does not prime the elt cache on
open, so the first 'elt = mail_elt (source,i);' gets back all zeros
rather than useful values for the various 'elt->xxx' fields.
After the mail_fetch_header, the cache has useful values for
that message.
Doing a 'mail_fetch_fast' after the mail_elt but before the header
write seems to fix things but I don't know if there's a better way.
Dave
--
Dave Funk University of Iowa
<dbfunk (at) engineering.uiowa.edu> College of Engineering
319/335-5751 FAX: 319/384-0549 1256 Seamans Center
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw