]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm quota get: Show current usage even if quota is unlimited.
authorTimo Sirainen <tss@iki.fi>
Thu, 13 May 2010 11:09:02 +0000 (13:09 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 13 May 2010 11:09:02 +0000 (13:09 +0200)
--HG--
branch : HEAD

src/plugins/quota/doveadm-quota.c

index 7fe1723eff0c02811221e2a4e686d43b2dbedc71..3a556aed8719e349d2c3b6efd83292372c2b358e 100644 (file)
@@ -28,9 +28,10 @@ static void cmd_quota_get_root(struct mail_user *user, struct quota_root *root)
                        printf("%llu/%llu",
                               (unsigned long long)value,
                               (unsigned long long)limit);
-               } else if (ret == 0)
-                       printf("none");
-               else
+               } else if (ret == 0) {
+                       printf("%llu/unlimited",
+                              (unsigned long long)value);
+               } else
                        printf("error");
                if (res[1] != NULL)
                        printf(", ");