summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-14 11:52:06 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-30 14:50:55 +0200
commit065556118aaa11bfd287413d12fd775f79618ff1 (patch)
treef9a19e920ae34c59dfd2996ccefbc1e152be45ae /pykolab
parentfb6003ce967d0205909c6ae04dba99a1cd82d628 (diff)
downloadpykolab-065556118aaa11bfd287413d12fd775f79618ff1.tar.gz
Correct cmd_list_deleted_mailboxes
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/cli/cmd_list_deleted_mailboxes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/cli/cmd_list_deleted_mailboxes.py b/pykolab/cli/cmd_list_deleted_mailboxes.py
index b29e977..90bcddd 100644
--- a/pykolab/cli/cmd_list_deleted_mailboxes.py
+++ b/pykolab/cli/cmd_list_deleted_mailboxes.py
@@ -21,6 +21,7 @@ import commands
import pykolab
+from pykolab.imap import IMAP
from pykolab.translate import _
log = pykolab.getLogger('pykolab.cli')
@@ -33,6 +34,7 @@ def execute(*args, **kw):
"""
List deleted mailboxes
"""
+ imap = IMAP()
imap.connect()
folders = imap.lm("DELETED/*")
print "Deleted folders:"