Chinmay1220 opened a new pull request, #68297: URL: https://github.com/apache/airflow/pull/68297
Fixes #65870. This adds an overwrite_file option to ImapHook.download_mail_attachments. By default, existing behavior is preserved and duplicate filenames overwrite the same local path. When overwrite_file=False, downloaded attachments with duplicate filenames are saved with a numeric suffix, preserving each attachment. Added unit coverage for: - default overwrite behavior - preserving duplicate attachment names - avoiding collision with an existing local file -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
