Page MenuHomePhorge

D92.id187.diff
No OneTemporary

D92.id187.diff

diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -372,11 +372,11 @@
self.xfer(mailfolder, new_server)
def undelete_mailfolder(
- self,
- mailfolder,
- to_mailfolder=None,
- recursive=True
- ):
+ self,
+ mailfolder,
+ to_mailfolder=None,
+ recursive=True
+ ):
"""
Login to the actual backend server, then "undelete" the mailfolder.
@@ -458,7 +458,7 @@
target_server = self.find_mailfolder_server(target_folder)
if hasattr(conf, 'dry_run') and not conf.dry_run:
- if not target_server == self.server:
+ if target_server is not self.server:
self.xfer(undelete_folder, target_server)
self.rename(undelete_folder, target_folder)

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 1:29 PM (19 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10186785
Default Alt Text
D92.id187.diff (954 B)

Event Timeline