From 2600428ba793975167db2ac7ff6d5f15bc41a712 Mon Sep 17 00:00:00 2001 From: Joshua Downer Date: Fri, 20 Dec 2013 06:49:15 -0500 Subject: [PATCH] imbox: added folders() method to Imbox I think it would be nice to have the list of folders on the Imbox class along with the message query rather than on the ImapTransport class. However, I have left the existing list_folders() method on the ImapTransport to avoid breaking existing code that is using imbox. --- imbox/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imbox/__init__.py b/imbox/__init__.py index 381b0e0..e87e9d7 100644 --- a/imbox/__init__.py +++ b/imbox/__init__.py @@ -58,3 +58,5 @@ class Imbox(object): return self.fetch_list(**kwargs) + def folders(self): + return self.connection.list()