Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Configure an email polling service.
  2. Configure a file collector to gather details of the email message (the body) and any attached files.

Set up service to poll an email account for new messages

Full details for this configuration can be found in emailAccount, but in this article we will cover some common examples.

...

Example Settings using IMAP / Office 365

 

With the IMAP protocol, a subfolder can be specified, as in the example below. But if you leave Folder blank, emails will be read directory from the Inbox.

  

Set up file collector to load email messages and/or attachments

...

The file collector will need to have the following settings (see also the screen shot below):

FieldValue
Source TypeManaged File
File TypeThe type of the attached file, or for reading the email message itself (the body), probably CSV
File Location StrategyAll Files in Folder
Tag

If a tag is being set (see below), the tag name surrounded by double quotes. E.g.:

Code Block
"accdataemail"

If a tag is not being set:

Code Block
"default"


Input Directory Expr.


Code Block
"in"


Directory Pattern Expression


Code Block
".*"


File Pattern Expression

A pattern to match attached files, e.g. to find attached files with names like AccData-20170426.xlsx:

Code Block
"AccData.*xlsx"

or if you want to read in the email messages (body) this will be just

Code Block
"body.txt"


Archive Directory Expression


Code Block
"archive"


Setting a tag

You can set a tag for the emails by including

...