summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 17:07:48 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 19:25:15 (GMT)
commitd8ad999e066ff28a1645de314597c31b5378310b (patch)
tree943d98a19de7ea6382e82468269871825c688ef8
parent17c07881190307e14294e2887c055632297b3200 (diff)
downloadpykolab-d8ad999e066ff28a1645de314597c31b5378310b.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 c21f7a4..46eec85 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')
@@ -43,6 +44,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)