Email Input
Receiving data through IMAP / POP3 services
- Ability to listen on multiple IMAP / POP3 servers
- Ability to filter by subject patterns, attachments, etc
Related Context APIs
Example
log.info("Processing email: %s", mail.getSubject());
def textContents = mail.listStringParts();
def fileNames = [];
def attachments = mail.listAttachments(fileNames);
for(int i=0;i<textContents.size();i++){
log.info("Text Content[%d]", i+1);
log.info("\n%s",textContents[i]);
log.info("--------------------");
}
for(int i=0;i<attachments.size();i++){
log.info("Attachment[%s]", fileNames[i]);
log.info("\n%s", new String(attachments[i]));
log.info("--------------------");
}
Related REST APIs
Create / Update Input
Retrieve Input
List Inputs
Count All Inputs
Start Stop Restart an Input
Delete Input
Delete All Inputs
Updated almost 3 years ago