Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9574:e63d38c7d2ba HEAD
mbox: If write fails with EFBIG, give an error that mentions ulimit -f.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 25 May 2010 17:37:28 +0100 |
parents | c2c1639b91ee |
children | 0a00dcc4f0ea |
files | src/lib-storage/index/mbox/mbox-storage.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }