[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-save.c, 1.80, 1.81
tss at dovecot.org
tss at dovecot.org
Sun Mar 11 18:30:08 EET 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv5342
Modified Files:
maildir-save.c
Log Message:
If o_stream_send_istream() fails with ENOSPC/EDQUOT, don't log a critical
error but just give user a "not enough disk space" error.
Index: maildir-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-save.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- maildir-save.c 22 Feb 2007 14:08:43 -0000 1.80
+++ maildir-save.c 11 Mar 2007 16:30:05 -0000 1.81
@@ -353,9 +353,14 @@
index_mail_cache_parse_continue(ctx->cur_dest_mail);
if (o_stream_send_istream(ctx->output, ctx->input) < 0) {
- mail_storage_set_critical(STORAGE(ctx->mbox->storage),
- "o_stream_send_istream(%s/%s) failed: %m",
- ctx->tmpdir, ctx->file_last->basename);
+ if (ENOSPACE(errno)) {
+ mail_storage_set_error(STORAGE(ctx->mbox->storage),
+ "Not enough disk space");
+ } else {
+ mail_storage_set_critical(STORAGE(ctx->mbox->storage),
+ "o_stream_send_istream(%s/%s) failed: %m",
+ ctx->tmpdir, ctx->file_last->basename);
+ }
ctx->failed = TRUE;
return -1;
}
More information about the dovecot-cvs
mailing list