vinod85/pygmail — Issue #1: A solution for buggy get_mailboxes method.
Author: javadr
Created: 2011-11-07 15:40:36+00:00
State: open

Hi,
Sometimes folder's name include spaces, so use of spit() is not suitable, therefore I suggest the below code for gotting mailboxes.
Good Lcuk

def get_mailboxes(self):
rc, self.response = self.M.list()
for item in self.response:
self.mailboxes.append(item.split('"')[-2])
return rc