mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Do not try to calculate current quota state if it's not defined for the user.
see #194
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user