Email Agent
This section describes the Email Agent. This is a collection agent for batch workflow configurations.Â
The Email Agent is can connect to an existing email server using either the IMAP or POP3 protocols and fetch from emails from them.
Workflow with Email agent
Batch model
To make sure that every email gets handled according to the rules set in the configuration we treat each email as a batch. Meaning that if the mail folder where you read the emails from, contains 30 emails that you will process, it will be split into 30 batches.
To manage resources better the agent splits a large number of messages into batches internally. Instead of lazy loading each message during processing, which would mean more than one transaction to the email server per message, the agent fetches all content for the specified number of emails at a time and then processes them.Â
Pseudocode of batch model