You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Felix Uellendall (JIRA)" <ji...@apache.org> on 2018/12/31 12:13:00 UTC

[jira] [Created] (AIRFLOW-3602) Change ImapHook to raise an Exception when no attachments have been found

Felix Uellendall created AIRFLOW-3602:
-----------------------------------------

             Summary: Change ImapHook to raise an Exception when no attachments have been found
                 Key: AIRFLOW-3602
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3602
             Project: Apache Airflow
          Issue Type: New Feature
    Affects Versions: 1.10.1
            Reporter: Felix Uellendall


At the moment the
```
def retrieve_mail_attachments(self, name, mail_folder='INBOX', check_regex=False,
                                  latest_only=False):
```
returns an empty list if no attachments have been found.
And the
```
def download_mail_attachments(self, name, local_output_directory, mail_folder='INBOX',
                                  check_regex=False, latest_only=False):
```
also does not log anything if no attachment has been found.

Is this useful? Or would it be better to raise an exception instead?



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