diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index 8c29ee2..8635f7c 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -74,6 +74,13 @@ class IMAPRepository(BaseRepository): return num def getsep(self): + """Return the folder separator for the IMAP repository + + This requires that self.imapserver has been initialized with an + acquireconnection() or it will still be `None`""" + assert self.imapserver.delim != None, "'%s' " \ + "repository called getsep() before the folder separator was " \ + "queried from the server" % self return self.imapserver.delim def gethost(self):