'Each folder is accessible as Mail.[name].'

def __getattr__(self, k):

    if (k in self.__dict__):
        return self.__dict__[k]
    if (k in self.folders):
        return self.folders[k]
    raise AttributeError(("'Mail'    object    has    no    attribute    '%s'" % k))
