Subscription folder loading fix

This commit is contained in:
mailchuck 2016-05-01 08:16:10 +02:00 committed by Peter Surda
parent 02a593fc7f
commit 444edbd6a3

View File

@ -35,6 +35,11 @@ def getSortedSubscriptions(count = False):
GROUP BY inbox.fromaddress, folder''') GROUP BY inbox.fromaddress, folder''')
for row in queryreturn: for row in queryreturn:
address, folder, cnt = row address, folder, cnt = row
if not folder in ret[address]:
ret[address][folder] = {
'label': ret[address]['inbox']['label'],
'enabled': ret[address]['inbox']['enabled']
}
ret[address][folder]['count'] = cnt ret[address][folder]['count'] = cnt
return ret return ret