summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 18:07:48 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 18:07:48 +0100
commit67813db2f3fce7ae37c763fd1baf64f38a1709c8 (patch)
tree1fb298a56bafd9f11dd6b40370980dc809d4225d
parent64196a670ccd3efbbf968d64a7b6fce00b8c5bdf (diff)
downloadpykolab-67813db2f3fce7ae37c763fd1baf64f38a1709c8.tar.gz
Correct IMAP not being loaded / initialized
-rw-r--r--pykolab/cli/cmd_undelete_mailbox.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/cli/cmd_undelete_mailbox.py b/pykolab/cli/cmd_undelete_mailbox.py
index 316e164..6cac2b0 100644
--- a/pykolab/cli/cmd_undelete_mailbox.py
+++ b/pykolab/cli/cmd_undelete_mailbox.py
@@ -21,6 +21,7 @@ import commands
import pykolab
+from pykolab.imap import IMAP
from pykolab.translate import _
log = pykolab.getLogger('pykolab.cli')
@@ -40,6 +41,7 @@ def execute(*args, **kw):
if len(conf.cli_args) > 0:
target_folder = conf.cli_args.pop(0)
+ imap = IMAP()
imap.connect()
imap.undelete_mailfolder(undelete_folder, target_folder)