cloudflare_temp_email/smtp_proxy_server
Dream Hunter 03965f3612
fix(imap): fix mojibake in nested emails, empty headers, and date handling (#909)
* fix(imap): fix mojibake in nested emails, empty headers, and date handling

- Add line-by-line mojibake fix fallback for complex emails with mixed content
- Apply empty header cleanup globally to fix nested message/rfc822 parts
- Add locale-independent date formatting (format_imap_date, format_rfc2822_date)
- Fill missing Date header from created_at field
- Fix getSubPart for non-multipart messages
- Accept CREATE requests from clients (e.g. Gmail creating Drafts)
- Strip whitespace from IMAP password
- Use MIMEText instead of MIMEMultipart for sent mail generation
- Keep body in original CTE encoding for correct BODYSTRUCTURE
- Update CHANGELOG (zh/en)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: consolidate IMAP changelog entries into single line

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 20:52:18 +08:00
..
.env.example feat: add STARTTLS support for SMTP proxy server (#876) 2026-03-06 15:05:29 +08:00
.gitignore feat: add SMTP proxy server (#177) 2024-04-29 21:47:15 +08:00
config.py feat: add STARTTLS support for SMTP proxy server (#876) 2026-03-06 15:05:29 +08:00
docker-compose.yaml feat: add imap proxy server (#225) 2024-05-12 11:34:52 +08:00
dockerfile feat: add imap proxy server (#225) 2024-05-12 11:34:52 +08:00
imap_http_client.py fix(imap): fix mojibake in nested emails, empty headers, and date handling (#909) 2026-03-22 20:52:18 +08:00
imap_mailbox.py fix(imap): fix mojibake in nested emails, empty headers, and date handling (#909) 2026-03-22 20:52:18 +08:00
imap_message.py fix(imap): fix mojibake in nested emails, empty headers, and date handling (#909) 2026-03-22 20:52:18 +08:00
imap_server.py fix(imap): fix mojibake in nested emails, empty headers, and date handling (#909) 2026-03-22 20:52:18 +08:00
main.py refactor: modularize IMAP server with dual login, STARTTLS, and test suite (#859) 2026-03-06 11:08:10 +08:00
models.py feat: add imap proxy server (#225) 2024-05-12 11:34:52 +08:00
parse_email.py fix(imap): fix mojibake in nested emails, empty headers, and date handling (#909) 2026-03-22 20:52:18 +08:00
requirements.txt chore(deps): bump pyopenssl from 25.3.0 to 26.0.0 in /smtp_proxy_server (#902) 2026-03-19 20:32:10 +08:00
smtp_server.py feat: add STARTTLS support for SMTP proxy server (#876) 2026-03-06 15:05:29 +08:00