Fix UnicodeEncodeError for Cyrillic in email headers
_enc_header() checks if a value is ASCII-safe; if not, wraps it in
email.header.Header with utf-8 charset, producing RFC 2047 encoding
(=?utf-8?b?...?=). Applied to Subject and To in _build_mime — covers
both send and reply with Cyrillic subjects or display names.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 02c7dd8 commit 69e91cbb3edf72b59f0afd07703f8be4ff4a87f9
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 16 Apr
Showing 1 changed file
View
tools/gmail.py