Imap
This feeder creates a stream starting from emails received on the account read by an IMAP client. It is possible to define how often the email account should be checked.
Every time the email inbox is parsed a Message is sent down the lane.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
host | STRING | empty | Host of the IMAP server |
port | STRING | empty | Port of the IMAP server |
username | STRING | empty | Username of the account |
password | STRING | empty | Password of the account |
mailbox | STRING | “INBOX” | Name of the mailbox to read |
freq | DURATION | “1m” | how often the email account should be checked |
start_from_beginning | BOOL | “true” | if “true” it reads all the emails in the mailbox from the beginning |
get_attachments | BOOL | “false” | if “true” it reads also the attachments |
... | <imap: host="imap.gmail.com", port="993", username="test@gmail.com", password="xxxxx", get_attachments="true", freq="30m"> ...
Output
Text
The main
field of the Message will contain the email’s subject.
Extra
Name | Description |
---|---|
from | List of the senders in the form email@mail.com Name |
to | List of the recipients in the form email@mail.com Name |
reply_to | List of address in the “Reply-To” header |
in_reply_to | Parent Message-id |
cc | List of the CC Header Addresses in the form email@mail.com Name |
bcc | List of the BCC Header Addresses in the form email@mail.com Name |
sender | Message sender |
message_id | Message-Id of the current email |
date | Message Date |
subject | Subject of the email |
is_attachment | It is “true” if has the following 2 fields |
attachment_filename | Name of the attachment |
attachment_body | Binary content of the attachment |
Not all the Extra field could be filled. If the relative tag is not present on the feed it will be empty.
Examples
Soon…