[Imap-uw] Re: mixcvt mx->mix strange problem
Mark Crispin
mrc at CAC.Washington.EDU
Mon Apr 23 21:43:52 PDT 2007
On Mon, 23 Apr 2007, David B Funk wrote:
> Things are fine when the source mailbox is 'mbx' but producing
> strange results for 'mx' format.
Thank you. Calling mail_fetch_fast() is the correct action. The
following patch (or just get the new mixcvt.tar.Z) will fix the problem:
--------------------------------------------------------------------------------
*** mixcvt.c~ 2007-04-18 13:35:42.000000000 -0700
--- mixcvt.c 2007-04-23 21:39:55.000000000 -0700
***************
*** 149,154 ****
--- 149,158 ----
FILE *data = NIL;
unsigned long curfile = 0;
+ if (source->nmsgs) {
+ sprintf (tmp,"1:%lu",source->nmsgs);
+ mail_fetch_fast (source,tmp,NIL);
+ }
/* try to lock up destination */
flock (fileno (meta),LOCK_EX);
fprintf (index,SEQFMT,now); /* write index and data files */
--------------------------------------------------------------------------------
-- Mark --
http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
More information about the Imap-uw
mailing list