ImapAttachmentSensor
IMAPWaits for a specific attachment on a mail server.
Access Instructions
Install the IMAP provider package into your Airflow environment.
Import the module into your DAG file and instantiate it with your desired params.
Parameters
attachment_nameRequiredThe name of the attachment that will be checked.
check_regexIf set to True the attachment’s name will be parsed as regular expression. Through this you can get a broader set of attachments that it will look for than just only the equality of the attachment name.
mail_folderThe mail folder in where to search for the attachment.
mail_filterIf set other than ‘All’ only specific mails will be checked. See imaplib.IMAP4.search() for details.
imap_conn_idThe imap connection id to run the sensor against.
Documentation
Waits for a specific attachment on a mail server.