summaryrefslogtreecommitdiff
path: root/mail.local
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-12-23 16:59:31 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-12-23 16:59:31 +0000
commitef23d9926dbb515d9057cf20ee32227cc8e98d81 (patch)
treec8ba8126c753c34c9a60525363bb0c059a14b5cf /mail.local
parent86d51ea330245f0f9ca244c83787bd0f6cf83d6d (diff)
downloadmailutils-ef23d9926dbb515d9057cf20ee32227cc8e98d81.tar.gz
mailutils-ef23d9926dbb515d9057cf20ee32227cc8e98d81.tar.bz2
Use USE_MAILBOX_QUOTAS.
(sql_retrieve_quota): Assume unlimited quotas for empty fields.
Diffstat (limited to 'mail.local')
-rw-r--r--mail.local/mailquota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail.local/mailquota.c b/mail.local/mailquota.c
index 9fd513255..24fdea70c 100644
--- a/mail.local/mailquota.c
+++ b/mail.local/mailquota.c
@@ -17,7 +17,7 @@
#include <mail.local.h>
-#if defined (USE_DBM) || defined (USE_SQL)
+#if defined (USE_MAILBOX_QUOTAS)
#define DEFRETVAL MQUOTA_UNLIMITED
@@ -225,7 +225,7 @@ sql_retrieve_quota (char *name, size_t *quota)
mu_strerror (status));
rc = RETR_FAILURE;
}
- else if (tmp == NULL || strcasecmp (tmp, "none") == 0)
+ else if (tmp == NULL || tmp[0] == 0 || strcasecmp (tmp, "none") == 0)
rc = RETR_UNLIMITED;
else
{

Return to:

Send suggestions and report system problems to the System administrator.