[dovecot] Re: message order reversed on copying
Charlie Brady
charlieb-dovecot at e-smith.com
Mon Apr 7 01:15:45 EEST 2003
On 6 Apr 2003, Timo Sirainen wrote:
> On Sun, 2003-04-06 at 22:12, Charlie Brady wrote:
> >
> > You shouldn't need to do that. All you need to do is to sort the new
> > message files (by name or by mtime - by name will be faster), before
> > processing them.
>
> Yes, well, that does it too :)
>
> > + nfiles = scandir (tmp, &names, NULL, maildir_namesort);
>
> scandir() isn't portable though.
No? Which OS doesn't have it?
> > As a workaround, Kimura, you can delete dovecot's .imap.* index files, and
> > the new UIDs will be sorted again - until next time.
>
> Which changes UIDVALIDITY and forces clients to discard their cache.
Yes, I could have mentioned that. Still, it's the only way I know to
restore the sorting order once it's jumbled.
> Not too good idea. Pretty much the same as just disabling the index
> files.
No, because after you fix the problem the indexes will be usable again.
But until then, you are right :-)
--
Charlie
More information about the dovecot
mailing list