diff options
| author | Sergey Poznyakoff <gray@gnu.org> | 2020-08-17 20:34:21 +0300 |
|---|---|---|
| committer | Sergey Poznyakoff <gray@gnu.org> | 2020-08-17 20:37:50 +0300 |
| commit | 37713b42a501892469234b90454731d8d8b7a3e6 (patch) | |
| tree | 9a1f1011c546abd56ff6f6af1eaf2964936064e3 | |
| parent | 14c7654746d70bd3babc8164ad2336f5ceade426 (diff) | |
| download | mailutils-37713b42a5.tar.gz | |
Bugfix (complements fd9a86d37b)
* mda/lib/mailquota.c (sql_retrieve_quota): Fix a leftover use of
get_size.
| -rw-r--r-- | mda/lib/mailquota.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/mda/lib/mailquota.c b/mda/lib/mailquota.c index 7b7dd52..af719a5 100644 --- a/mda/lib/mailquota.c +++ b/mda/lib/mailquota.c @@ -270,16 +270,10 @@ sql_retrieve_quota (char *name, mu_off_t *quota) } else if (tmp == NULL || tmp[0] == 0 || mu_c_strcasecmp (tmp, "none") == 0) rc = RETR_UNLIMITED; - else + else if (get_quota (quota, tmp)) { - char *p; - - if (get_size (tmp, quota, &p)) - { - mu_error (_("bogus mailbox quota for `%s' (near `%s')"), - name, p); - *quota = groupquota; - } + *quota = groupquota; + rc = RETR_OK; } } |
