From: Timo Sirainen Date: Tue, 25 May 2010 16:36:35 +0000 (+0100) Subject: mbox: If write fails with EFBIG, give an error that mentions ulimit -f. X-Git-Tag: 2.0.beta6~161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b73c10c531ee696b1de345e03efe1d7c15273f1b;p=thirdparty%2Fdovecot%2Fcore.git mbox: If write fails with EFBIG, give an error that mentions ulimit -f. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/mbox/mbox-storage.c b/src/lib-storage/index/mbox/mbox-storage.c index 9ef3a5790c..261c74cd1e 100644 --- a/src/lib-storage/index/mbox/mbox-storage.c +++ b/src/lib-storage/index/mbox/mbox-storage.c @@ -75,9 +75,12 @@ int mbox_set_syscall_error(struct mbox_mailbox *mbox, const char *function) 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; }