[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c,
1.31, 1.32
cras at procontrol.fi
cras at procontrol.fi
Tue Jun 29 18:56:36 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv10725/lib-storage/index/maildir
Modified Files:
maildir-sync.c
Log Message:
Require that filenames in maildir begin with a digit, otherwise complain.
Index: maildir-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- maildir-sync.c 23 Jun 2004 20:10:34 -0000 1.31
+++ maildir-sync.c 29 Jun 2004 15:56:34 -0000 1.32
@@ -441,8 +441,13 @@
move_new = new_dir && !mailbox_is_readonly(&ctx->ibox->box) &&
!ctx->ibox->keep_recent;
while ((dp = readdir(dirp)) != NULL) {
- if (dp->d_name[0] == '.')
+ if (dp->d_name[0] < '0' || dp->d_name[0] > '9') {
+ if (dp->d_name[0] != '.') {
+ i_warning("Invalid maildir filename in %s: %s",
+ dir, dp->d_name);
+ }
continue;
+ }
ret = maildir_uidlist_sync_next_pre(ctx->uidlist_sync_ctx,
dp->d_name);
More information about the dovecot-cvs
mailing list