[dovecot-cvs]
dovecot/src/lib-storage/index/maildir maildir-storage.c,1.53,1.54
cras at procontrol.fi
cras at procontrol.fi
Tue Sep 9 22:33:25 EEST 2003
Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory danu:/tmp/cvs-serv18813/lib-storage/index/maildir
Modified Files:
maildir-storage.c
Log Message:
treat ~ mailbox prefix as absolute path too
Index: maildir-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- maildir-storage.c 24 Aug 2003 12:45:33 -0000 1.53
+++ maildir-storage.c 9 Sep 2003 18:33:23 -0000 1.54
@@ -188,13 +188,13 @@
if (storage->namespace != NULL && remove_namespace) {
len = strlen(storage->namespace);
if (strncmp(storage->namespace, name, len) != 0) {
- i_panic("mbox: expecting namespace '%s' in name '%s'",
- storage->namespace, name);
+ i_panic("maildir: expecting namespace '%s' in name "
+ "'%s'", storage->namespace, name);
}
name += len;
}
- if (*name == '/' && full_filesystem_access)
+ if (full_filesystem_access && (*name == '/' || *name == '~'))
return name;
sep = storage->hierarchy_sep;
More information about the dovecot-cvs
mailing list