Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5616:0d6cd7281aa7 HEAD
Added quota_full_tempfail setting.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 13 May 2007 20:33:00 +0300 |
parents | 9dd899f563fe |
children | a0310d7b6971 |
files | dovecot-example.conf src/deliver/deliver.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dovecot-example.conf Sun May 13 20:23:56 2007 +0300 +++ b/dovecot-example.conf Sun May 13 20:33:00 2007 +0300 @@ -663,6 +663,10 @@ #mail_plugins = #mail_plugin_dir = /usr/lib/dovecot/lda + # If user is over quota, return with temporary failure instead of + # bouncing the mail. + #quota_full_tempfail = no + # Binary to use for sending mails. #sendmail_path = /usr/lib/sendmail
--- a/src/deliver/deliver.c Sun May 13 20:23:56 2007 +0300 +++ b/src/deliver/deliver.c Sun May 13 20:33:00 2007 +0300 @@ -719,7 +719,8 @@ int ret; error_string = mail_storage_get_last_error(ns->storage, &error); - if (error != MAIL_ERROR_NOSPACE) { + if (error != MAIL_ERROR_NOSPACE || + getenv("QUOTA_FULL_TEMPFAIL") != NULL) { /* Saving to INBOX should always work unless we're over quota. If it didn't, it's probably a configuration problem. */