+ # The 'restoreatime' config parameter only applies to local Maildir
+ # mailboxes.
+ def restore_atime(self):
+ if self.config.get('Repository ' + self.name, 'type').strip() != \
+ 'Maildir':
+ return
+
+ if not self.config.has_option('Repository ' + self.name, 'restoreatime') or not self.config.getboolean('Repository ' + self.name, 'restoreatime'):
+ return
+
+ return self.restore_folder_atimes()
+
+ def connect(self):
+ """Establish a connection to the remote, if necessary. This exists
+ so that IMAP connections can all be established up front, gathering
+ passwords as needed. It was added in order to support the
+ error recovery -- we need to connect first outside of the error
+ trap in order to validate the password, and that's the point of
+ this function."""
+ pass
+