Example #1
0
 def __init__(self, filename="LOG1.txt", host_port=""):
     # mailbox="Archive Rafael Briones", folderindex=1):
     self.f = FileWriter(filename)
     self.outlook = win32com.client.gencache.EnsureDispatch(
         "Outlook.Application").GetNamespace("MAPI")
     inbox = self.outlook.GetDefaultFolder(
         win32com.client.constants.olFolderInbox)
     self.inbox = inbox
     self.host_port = host_port