dovecot-2.0: mbox: If write fails with EFBIG, give an error that...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 25 19:36:38 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/f7527971fed0
changeset: 11369:f7527971fed0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 25 17:36:35 2010 +0100
description:
mbox: If write fails with EFBIG, give an error that mentions ulimit -f.

diffstat:

 src/lib-storage/index/mbox/mbox-storage.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fb1cc2f5d681 -r f7527971fed0 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c	Tue May 25 17:34:56 2010 +0100
+++ b/src/lib-storage/index/mbox/mbox-storage.c	Tue May 25 17:36:35 2010 +0100
@@ -75,9 +75,12 @@
 		mail_storage_set_error(&mbox->storage->storage,
 			MAIL_ERROR_NOSPACE, MAIL_ERRSTR_NO_SPACE);
 	} else {
+		const char *toobig_error = errno != EFBIG ? "" :
+			" (process was started with ulimit -f limit)";
 		mail_storage_set_critical(&mbox->storage->storage,
-					  "%s failed with mbox file %s: %m",
-					  function, mbox->box.path);
+					  "%s failed with mbox file %s: %m%s",
+					  function, mbox->box.path,
+					  toobig_error);
 	}
 	return -1;
 }


More information about the dovecot-cvs mailing list