[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-util.c,
1.6, 1.7
cras at dovecot.org
cras at dovecot.org
Sun Aug 22 09:24:07 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv31887
Modified Files:
maildir-util.c
Log Message:
If we can't create maildir temp file because we're out of quota, give user
readable error message.
Index: maildir-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-util.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- maildir-util.c 16 Jun 2004 00:53:37 -0000 1.6
+++ maildir-util.c 22 Aug 2004 06:24:04 -0000 1.7
@@ -256,8 +256,13 @@
*fname_r = t_strdup(path);
if (fd == -1) {
- mail_storage_set_critical(ibox->box.storage,
- "open(%s) failed: %m", path);
+ if (ENOSPACE(errno)) {
+ mail_storage_set_error(ibox->box.storage,
+ "Not enough disk space");
+ } else {
+ mail_storage_set_critical(ibox->box.storage,
+ "open(%s) failed: %m", path);
+ }
}
pool_unref(pool);
More information about the dovecot-cvs
mailing list