How to import MSG/EML email files into Outlook via the API?
问题 I have a directory hierarchy full of EML/MSG email data files. These files can be imported into MS Outlook 2010 (desktop version) one at a time, but I am looking for a way to automate this. I need to create each folder as an Outlook folder, and import email datafiles into these Outlook folders. Anyone aware of an Outlook 2010 API that allows for creating folders & importing files? 回答1: To create new folders in Outlook, use MAPIFolder.Folders.Add. Outlook Object Model does not directly support