Bug fix for outlook

This commit is contained in:
quentinhardy 2016-11-18 04:17:16 -05:00
parent 1bafddc114
commit 4bff7ea89b
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class outlook():
''' '''
folders = {} folders = {}
for inx, folder in enumerate(list(self.mapi.Folders)): for inx, folder in enumerate(list(self.mapi.Folders)):
logging.debug("New folder: {0}({1})".format(folder.Name, folder.EntryID)) logging.debug("New folder: {0}({1})".format(folder.Name.encode('utf-8'), folder.EntryID))
folders[folder.Name] = {} folders[folder.Name] = {}
if "Dossiers publics" not in folder.Name and "Public folders" not in folder.Name: #Bug in my version of outlook when getting emails in public folder if "Dossiers publics" not in folder.Name and "Public folders" not in folder.Name: #Bug in my version of outlook when getting emails in public folder
for inx,subfolder in enumerate(list(folder.Folders)): for inx,subfolder in enumerate(list(folder.Folders)):