'Returns True if no error
Otherise returns False'

def connect(self):

    try:
        self.outlook = win32com.client.Dispatch('Outlook.Application')
        self.mapi = self.outlook.GetNamespace('MAPI')
        if (self.folderId == None):
            self.setDefaultFolder(folderIndex=self.folderIndex)
        else:
            self.setFolderFromId(folderId=self.folderId)
        return True
    except Exception as e:
        return False
