mgustimz opened a new pull request, #66578: URL: https://github.com/apache/airflow/pull/66578
## What Fixes IMAP hook returning raw RFC 2047 encoded filenames (e.g. `=?UTF-8?B?...?=`) instead of decoded Unicode for non-ASCII attachment filenames. ## How Added `MailPart._decode_filename()` helper that uses `email.header.decode_header()` to properly decode RFC 2047 encoded filenames. Applied to `has_matching_name()`, `has_equal_name()`, and `get_file()` methods. ## Example Before: `=?UTF-8?B?0J/QtdGA0LXRh9C10L3RjCDRgtC+0YfQtdC6INC/0YDQvtC00LDQtl8yMDI2LTA0LTIxLnhsc3g=?=` After: `Перечень точек продаж_2026-04-21.xlsx` Fixes #65871 --- **Gen-AI disclosure:** This PR was created with the assistance of an AI coding tool. -- 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]
