From 8d6c2dcacb3ca4ff3a565cc239e78c2cf615f45a Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Mon, 23 Jan 2012 10:52:37 +0100 Subject: [PATCH] Do not try to calculate current quota state if it's not defined for the user. see #194 --- extensions/webmail/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/webmail/lib.py b/extensions/webmail/lib.py index 23505a80b..658d71aa6 100644 --- a/extensions/webmail/lib.py +++ b/extensions/webmail/lib.py @@ -327,7 +327,7 @@ class IMAPconnector(object): return status, data = self.m.getquotaroot(self._encodefolder(folder)) - if status == "OK": + if status == "OK" and data[1][0] is not None: quotadef = data[1][0] m = re.match("[^\s]+ \(STORAGE (\d+) (\d+)\)", quotadef) if not m: