# HG changeset patch # User Timo Sirainen # Date 1274805448 -3600 # Node ID e63d38c7d2ba8d87a037d6d190829f067e427350 # Parent c2c1639b91eef0fefd73475593b0bc36145a18b2 mbox: If write fails with EFBIG, give an error that mentions ulimit -f. diff -r c2c1639b91ee -r e63d38c7d2ba src/lib-storage/index/mbox/mbox-storage.c --- a/src/lib-storage/index/mbox/mbox-storage.c Tue May 25 16:07:43 2010 +0100 +++ b/src/lib-storage/index/mbox/mbox-storage.c Tue May 25 17:37:28 2010 +0100 @@ -86,9 +86,11 @@ 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->path); + "%s failed with mbox file %s: %m%s", + function, mbox->path, toobig_error); } return -1; }