You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/08/16 17:32:00 UTC
[jira] [Commented] (AIRFLOW-5056) Add mail_filter argument to
ImapHook when searching for attachments
[ https://issues.apache.org/jira/browse/AIRFLOW-5056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16909251#comment-16909251 ]
ASF subversion and git services commented on AIRFLOW-5056:
----------------------------------------------------------
Commit 6d27ced85a0574a72c376891ec027cd0e49a57ee in airflow's branch refs/heads/master from Felix Uellendall
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=6d27ced ]
[AIRFLOW-5056] Add argument to filter mails in ImapHook and related operators (#5672)
- changes the order of arguments for `has_mail_attachment`, `retrieve_mail_attachments` and `download_mail_attachments`
- add `get_conn` function
- refactor code
- fix pylint issues
- add imap_mail_filter arg to ImapAttachmentToS3Operator
- add mail_filter arg to ImapAttachmentSensor
- remove superfluous tests
- changes the order of arguments in the sensors + operators __init__
> Add mail_filter argument to ImapHook when searching for attachments
> -------------------------------------------------------------------
>
> Key: AIRFLOW-5056
> URL: https://issues.apache.org/jira/browse/AIRFLOW-5056
> Project: Apache Airflow
> Issue Type: New Feature
> Components: contrib, hooks
> Affects Versions: 1.10.3
> Reporter: Felix Uellendall
> Assignee: Felix Uellendall
> Priority: Minor
> Fix For: 2.0.0
>
>
> By making use of the _criterion_ argument in the [search|https://docs.python.org/3.6/library/imaplib.html#imaplib.IMAP4.search] function we can filter only specific mails we want to search in for attachments.
> *+ adding support to the ImapAttachmentSensor and ImapAttachmentToS3Operator*
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)