ConsumeIMAP 2025.10.9.21

Bundle

org.apache.nifi | nifi-email-nar

Description

Consumes messages from Email Server using IMAP protocol. The raw-bytes of each received email message are written as contents of the FlowFile

Tags

Consume, Email, Get, Imap, Ingest, Ingress, Message

Input Requirement

FORBIDDEN

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Authorization ModeHow to authorize retrieving email on the user’s behalf. Allowable values are ‘Use Password’ and ‘Use OAuth2’, which determine whether the Password or OAuth2 Access Token Provider property below is used.
Connection TimeoutThe amount of time to wait to connect to Email server
Delete MessagesSpecify whether mail messages should be deleted after retrieval.
Fetch SizeSpecify the maximum number of Messages to fetch per call to Email Server.
FolderEmail folder to retrieve messages from (e.g., INBOX)
Host NameNetwork address of Email server (e.g., pop.gmail.com, imap.gmail.com . .)
Mark Messages as ReadSpecify if messages should be marked as read after retrieval.
OAuth2 Access Token ProviderOAuth2 service that can provide access tokens. Only applicable if ‘Authorization Mode’ is set to ‘Use OAuth2’.
PasswordPassword used for authentication and authorization with Email server. Only applicable if ‘Authorization Mode’ is set to ‘Use Password’.
PortNumeric value identifying Port of Email server (e.g., 993)
Use SSLSpecifies if IMAP connection must be obtained via SSL encrypted connection (i.e., IMAPS)
User NameUser Name used for authentication and authorization with Email server.

Relationships

NameDescription
successAll messages that are successfully received from Email server and converted to FlowFiles are routed to this relationship