On Sat, 2008-06-21 at 15:12 +0200, Ralf Hildebrandt wrote:
> * Ralf Hildebrandt <[EMAIL PROTECTED]>:
> > * Timo Sirainen <[EMAIL PROTECTED]>:
> > 
> > > http://hg.dovecot.org/dovecot-1.1/rev/5a1cc688483b fixes this. I guess
> > > it's time for v1.1.1 soon. :(
> > 
> > Checking out, rebuilding...
> 
> Nope, still there (the change is in my sources, I restarted dovecot):
> 
> Jun 21 15:06:36 postamt dovecot: Dovecot v1.1.0 starting up
> Jun 21 15:09:02 postamt dovecot: IMAP(hwaiczie): Broken file 
> /home/h/w/hwaiczie/Maildir/dovecot-uidlist line 460: UID larger than next_uid 
> (12528 >= 12528)

They probably come from files that were already corrupted by the
previous version. At least I can't reproduce the error anymore myself.

Here's a script that can detect them:

perl -e '$hdr=0; while (<>) { if (!$hdr) { $oldhdr = 1 if (/^1/); $hdr=1; } 
elsif ($oldhdr && /^\d+ :/) { print "broken\n"; last; } }' < dovecot-uidlist

You could fix the files by dropping those lines that have ':' character.
Although then it'll probably give errors about expunged messages
reappearing, or something like that.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to