summaryrefslogtreecommitdiffstats
path: root/cyruslib.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-06-17 16:06:08 -0500
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-06-17 16:06:08 -0500
commitba6b4c314e13b6a5fd73bbad6b69ef91a32132f4 (patch)
treec63bdb8cd43e7ec9a4600ddfa61e88b84f99679c /cyruslib.py
parent29009021bd4050a467b9a96abfc82f0d201883d3 (diff)
downloadpykolab-ba6b4c314e13b6a5fd73bbad6b69ef91a32132f4.tar.gz
Add an XFER call
Diffstat (limited to 'cyruslib.py')
-rw-r--r--cyruslib.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cyruslib.py b/cyruslib.py
index 8eaaff4..6f2d836 100644
--- a/cyruslib.py
+++ b/cyruslib.py
@@ -45,7 +45,8 @@ Commands = {
'DUMP' : ('AUTH',), # To check admin status
'ID' : ('AUTH',), # Only one ID allowed in non auth mode
'GETANNOTATION': ('AUTH',),
- 'SETANNOTATION': ('AUTH',)
+ 'SETANNOTATION': ('AUTH',),
+ 'XFER' : ('AUTH',)
}
imaplib.Commands.update(Commands)
@@ -369,6 +370,10 @@ class CYRUS:
self.__doexception(function, error, *args)
self.__doexception(function, msg[0], *args)
+ def xfer(self, mailbox, server):
+ """Xfer a mailbox to server"""
+ return self.m._simple_command('XFER', mailbox, server)
+
def id(self):
self.__prepare('id')
res, data = self.m.id()