diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-12-23 16:59:31 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-12-23 16:59:31 +0000 |
commit | ef23d9926dbb515d9057cf20ee32227cc8e98d81 (patch) | |
tree | c8ba8126c753c34c9a60525363bb0c059a14b5cf | |
parent | 86d51ea330245f0f9ca244c83787bd0f6cf83d6d (diff) | |
download | mailutils-ef23d9926dbb515d9057cf20ee32227cc8e98d81.tar.gz mailutils-ef23d9926dbb515d9057cf20ee32227cc8e98d81.tar.bz2 |
Use USE_MAILBOX_QUOTAS.
(sql_retrieve_quota): Assume unlimited quotas for empty fields.
-rw-r--r-- | mail.local/mailquota.c | 4 |
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 { |