Email Parser

Extract data from incoming emails and automate your workflow

MENUMENU

How to save email attachments and body text to a different folder for each email

September 2, 2018

Email Parser is commonly used to capture text from incoming emails and update databases, spreadsheets etc. but another very common use case is to use it as an email archiving tool. We have recently received the following question regarding the latter:

 

I’m considering using Email Parser to catch mails from an Office 365 account, and save all the attachments to a folder.

I don’t want the attachments to be saved in one big folder. Instead, I need one sub-folder to be created per email received. Name of the subfolder can be a timestamp or ID. Or name of subject but there is a risk of same names.

I also want the body of each mail to be saved in the corresponding sub-folder as an html file or even better as a .pdf file.

 

(We have properly anonymized and slightly changed the text for privacy)

 

A configuration that does so looks as following:

read more …