[jira] [Updated] (AIRFLOW-2780) Add IMAP Hook to retrieve email attachments from a mail server

2018-07-25 Thread Felix Uellendall (JIRA)


 [ 
https://issues.apache.org/jira/browse/AIRFLOW-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Uellendall updated AIRFLOW-2780:
--
Description: 
This Hook connects to a mail server via IMAP to be able to retrieve email 
attachments by using [Python's IMAP 
Library.|https://docs.python.org/3.6/library/imaplib.html]


### Description
- `has_mail_attachments`: Can be used in a `Sensor` to check if there is an 
attachment on the mail server with the given name.
- `retrieve_mail_attachments`: Can be used in an `Operator` to do sth. with the 
attachments returned as list of tuple.
- `download_mail_attachments`: Can be used in an `Operator` to download the 
attachment.

### Tests
- `test_connect_and_disconnect`: this tests calls the ImapHook as ContextManager
- `test_has_mail_attachments_found`
- `test_has_mail_attachments_not_found`
- `test_has_mail_attachments_with_regex_found`
- `test_has_mail_attachments_with_regex_not_found`
- `test_retrieve_mail_attachments_found`
- `test_retrieve_mail_attachments_not_found`
- `test_retrieve_mail_attachments_with_regex_found`
- `test_retrieve_mail_attachments_with_regex_not_found`
- `test_download_mail_attachments_found`
- `test_download_mail_attachments_not_found`
- `test_download_mail_attachments_with_regex_found`
- `test_download_mail_attachments_with_regex_not_found`

  was:
This Hook connects to a mail server via IMAP to be able to retrieve email 
attachments by using [Python's IMAP 
Library.|https://docs.python.org/3.6/library/imaplib.html]

 

 Features:
 * {{has_mail_attachments}}: Can be used in a {{Sensor}} to check if there is 
an attachment on the mail server in a specific mail folder with the given name.
 * {{retrieve_mail_attachments}}: Can be used in an {{Operator}} to do sth. 
with the attachment after it has been retrieved/downloaded.


> Add IMAP Hook to retrieve email attachments from a mail server
> --
>
> Key: AIRFLOW-2780
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2780
> Project: Apache Airflow
>  Issue Type: New Feature
>Reporter: Felix Uellendall
>Assignee: Felix Uellendall
>Priority: Major
>
> This Hook connects to a mail server via IMAP to be able to retrieve email 
> attachments by using [Python's IMAP 
> Library.|https://docs.python.org/3.6/library/imaplib.html]
> ### Description
> - `has_mail_attachments`: Can be used in a `Sensor` to check if there is an 
> attachment on the mail server with the given name.
> - `retrieve_mail_attachments`: Can be used in an `Operator` to do sth. with 
> the attachments returned as list of tuple.
> - `download_mail_attachments`: Can be used in an `Operator` to download the 
> attachment.
> ### Tests
> - `test_connect_and_disconnect`: this tests calls the ImapHook as 
> ContextManager
> - `test_has_mail_attachments_found`
> - `test_has_mail_attachments_not_found`
> - `test_has_mail_attachments_with_regex_found`
> - `test_has_mail_attachments_with_regex_not_found`
> - `test_retrieve_mail_attachments_found`
> - `test_retrieve_mail_attachments_not_found`
> - `test_retrieve_mail_attachments_with_regex_found`
> - `test_retrieve_mail_attachments_with_regex_not_found`
> - `test_download_mail_attachments_found`
> - `test_download_mail_attachments_not_found`
> - `test_download_mail_attachments_with_regex_found`
> - `test_download_mail_attachments_with_regex_not_found`



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AIRFLOW-2780) Add IMAP Hook to retrieve email attachments from a mail server

2018-07-25 Thread Felix Uellendall (JIRA)


 [ 
https://issues.apache.org/jira/browse/AIRFLOW-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Uellendall updated AIRFLOW-2780:
--
Description: 
This Hook connects to a mail server via IMAP to be able to retrieve email 
attachments by using [Python's IMAP 
Library.|https://docs.python.org/3.6/library/imaplib.html]

Features:
- `has_mail_attachments`: Can be used in a `Sensor` to check if there is an 
attachment on the mail server with the given name.
- `retrieve_mail_attachments`: Can be used in an `Operator` to do sth. with the 
attachments returned as list of tuple.
- `download_mail_attachments`: Can be used in an `Operator` to download the 
attachment.

Tests:
- `test_connect_and_disconnect`: this tests calls the ImapHook as ContextManager
- `test_has_mail_attachments_found`
- `test_has_mail_attachments_not_found`
- `test_has_mail_attachments_with_regex_found`
- `test_has_mail_attachments_with_regex_not_found`
- `test_retrieve_mail_attachments_found`
- `test_retrieve_mail_attachments_not_found`
- `test_retrieve_mail_attachments_with_regex_found`
- `test_retrieve_mail_attachments_with_regex_not_found`
- `test_download_mail_attachments_found`
- `test_download_mail_attachments_not_found`
- `test_download_mail_attachments_with_regex_found`
- `test_download_mail_attachments_with_regex_not_found`

  was:
This Hook connects to a mail server via IMAP to be able to retrieve email 
attachments by using [Python's IMAP 
Library.|https://docs.python.org/3.6/library/imaplib.html]


### Description
- `has_mail_attachments`: Can be used in a `Sensor` to check if there is an 
attachment on the mail server with the given name.
- `retrieve_mail_attachments`: Can be used in an `Operator` to do sth. with the 
attachments returned as list of tuple.
- `download_mail_attachments`: Can be used in an `Operator` to download the 
attachment.

### Tests
- `test_connect_and_disconnect`: this tests calls the ImapHook as ContextManager
- `test_has_mail_attachments_found`
- `test_has_mail_attachments_not_found`
- `test_has_mail_attachments_with_regex_found`
- `test_has_mail_attachments_with_regex_not_found`
- `test_retrieve_mail_attachments_found`
- `test_retrieve_mail_attachments_not_found`
- `test_retrieve_mail_attachments_with_regex_found`
- `test_retrieve_mail_attachments_with_regex_not_found`
- `test_download_mail_attachments_found`
- `test_download_mail_attachments_not_found`
- `test_download_mail_attachments_with_regex_found`
- `test_download_mail_attachments_with_regex_not_found`


> Add IMAP Hook to retrieve email attachments from a mail server
> --
>
> Key: AIRFLOW-2780
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2780
> Project: Apache Airflow
>  Issue Type: New Feature
>Reporter: Felix Uellendall
>Assignee: Felix Uellendall
>Priority: Major
>
> This Hook connects to a mail server via IMAP to be able to retrieve email 
> attachments by using [Python's IMAP 
> Library.|https://docs.python.org/3.6/library/imaplib.html]
> Features:
> - `has_mail_attachments`: Can be used in a `Sensor` to check if there is an 
> attachment on the mail server with the given name.
> - `retrieve_mail_attachments`: Can be used in an `Operator` to do sth. with 
> the attachments returned as list of tuple.
> - `download_mail_attachments`: Can be used in an `Operator` to download the 
> attachment.
> Tests:
> - `test_connect_and_disconnect`: this tests calls the ImapHook as 
> ContextManager
> - `test_has_mail_attachments_found`
> - `test_has_mail_attachments_not_found`
> - `test_has_mail_attachments_with_regex_found`
> - `test_has_mail_attachments_with_regex_not_found`
> - `test_retrieve_mail_attachments_found`
> - `test_retrieve_mail_attachments_not_found`
> - `test_retrieve_mail_attachments_with_regex_found`
> - `test_retrieve_mail_attachments_with_regex_not_found`
> - `test_download_mail_attachments_found`
> - `test_download_mail_attachments_not_found`
> - `test_download_mail_attachments_with_regex_found`
> - `test_download_mail_attachments_with_regex_not_found`



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AIRFLOW-2780) Add IMAP Hook to retrieve email attachments from a mail server

2018-07-25 Thread Felix Uellendall (JIRA)


 [ 
https://issues.apache.org/jira/browse/AIRFLOW-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Uellendall updated AIRFLOW-2780:
--
Description: 
This Hook connects to a mail server via IMAP to be able to retrieve email 
attachments by using [Python's IMAP 
Library.|https://docs.python.org/3.6/library/imaplib.html]

 

 Features:
 * {{has_mail_attachments}}: Can be used in a {{Sensor}} to check if there is 
an attachment on the mail server in a specific mail folder with the given name.
 * {{retrieve_mail_attachments}}: Can be used in an {{Operator}} to do sth. 
with the attachment after it has been retrieved/downloaded.

  was:
This Hook connects to a mail server via IMAP to be able to retrieve email 
attachments by using [Python's IMAP 
Library.|https://docs.python.org/3.6/library/imaplib.html]

 


> Add IMAP Hook to retrieve email attachments from a mail server
> --
>
> Key: AIRFLOW-2780
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2780
> Project: Apache Airflow
>  Issue Type: New Feature
>Reporter: Felix Uellendall
>Assignee: Felix Uellendall
>Priority: Major
>
> This Hook connects to a mail server via IMAP to be able to retrieve email 
> attachments by using [Python's IMAP 
> Library.|https://docs.python.org/3.6/library/imaplib.html]
>  
>  Features:
>  * {{has_mail_attachments}}: Can be used in a {{Sensor}} to check if there is 
> an attachment on the mail server in a specific mail folder with the given 
> name.
>  * {{retrieve_mail_attachments}}: Can be used in an {{Operator}} to do sth. 
> with the attachment after it has been retrieved/downloaded.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)