IMAP.py list folders
This patch changes the refernce to "", because now the empty string is not saved as '""', is just '', so the fecth command fails. Then, I changed the fech call to "" "*", using refernce "" and pattern "*".
This commit is contained in:
parent
7947aea7a9
commit
caaa953616
@ -350,7 +350,7 @@ class IMAPRepository(BaseRepository):
|
|||||||
return self.getconf('transporttunnel', None)
|
return self.getconf('transporttunnel', None)
|
||||||
|
|
||||||
def getreference(self):
|
def getreference(self):
|
||||||
return self.getconf('reference', '')
|
return self.getconf('reference', '""')
|
||||||
|
|
||||||
def getdecodefoldernames(self):
|
def getdecodefoldernames(self):
|
||||||
return self.getconfboolean('decodefoldernames', False)
|
return self.getconfboolean('decodefoldernames', False)
|
||||||
@ -454,7 +454,7 @@ class IMAPRepository(BaseRepository):
|
|||||||
listfunction = imapobj.lsub
|
listfunction = imapobj.lsub
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result, listresult = listfunction(directory=self.imapserver.reference)
|
result, listresult = listfunction(directory=self.imapserver.reference, pattern='"*"')
|
||||||
if result != 'OK':
|
if result != 'OK':
|
||||||
raise OfflineImapError("Could not list the folders for"
|
raise OfflineImapError("Could not list the folders for"
|
||||||
" repository %s. Server responded: %s" %
|
" repository %s. Server responded: %s" %
|
||||||
|
Loading…
Reference in New Issue
Block a user