On Wed, 2008-06-25 at 10:08 +0200, Patryk wrote: > I'm using dovecot version 1.0.13 on reiserfs on hardware RAID-0, but I'm > getting the > following error in the logs every time one user tries to access his old mails > in the .Sent > directory: > > dovecot: 2008-06-23 15:09:46 Error: IMAP(marek.chajecki): Invalid data in file > /var/mail/Maildir/marek.chajecki/.Sent/dovecot-uidlist
I think I already asked about this, but the files really look like they contain LF characters in them for some reason. Try applying the attached patch. Does it start complaining about LFs?
diff -r 52f1d54d37cf src/lib-storage/index/maildir/maildir-uidlist.c --- a/src/lib-storage/index/maildir/maildir-uidlist.c Sat Jun 21 16:23:40 2008 +0300 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c Tue Jul 01 23:01:01 2008 +0300 @@ -914,9 +914,18 @@ { struct maildir_uidlist *uidlist = ctx->uidlist; struct maildir_uidlist_rec *rec, *old_rec; + const char *p; if (ctx->failed) return -1; + + for (p = filename; *p != '\0'; p++) { + if (*p == 13 || *p == 10) { + i_warning("Maildir %s: Ignoring a file with LF: %s", + uidlist->mbox->path, filename); + return 1; + } + } if (ctx->partial) return maildir_uidlist_sync_next_partial(ctx, filename, flags);
signature.asc
Description: This is a digitally signed message part