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-14 11:52:06 +0100
commit10dd11e96ad0bb535573953984a6e4c086d8e0bc (patch)
treee0beb6af432d06f16c1eff6883c96d1d031bc0d2 /pykolab
parent1eb236d0477a9f3b1d779cf12a24002e9d353c22 (diff)
downloadpykolab-10dd11e96ad0bb535573953984a6e4c086d8e0bc.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:"