/Matlab-read-Outlook

Scraping emails from Microsoft Outlook

Primary LanguageMATLABApache License 2.0Apache-2.0

Matlab function which reads Outlook emails

Author : Ioannis Kyriakos

Matlab function which imports the 'readed' or 'unreaded' Outlook emails from inbox, folders and sub-folders.
Extracts their subjects, bodies and can save their attachments.

% Reads all emails from inbox
mails = ReadOutlook;

% Reads all Unread emails from inbox
mails = ReadOutlook('Read', 1);

% Reads all Unread emails from inbox and marks them as read
mails = ReadOutlook('Read', 1, 'Mark', 1);

% Reads all emails from folder and save their attachments
mails = ReadOutlook('Folder', 'Groups', 'Savepath', 'C:\matlab\data\test');