Files
ragflow/common/data_source
ksufer 5a8fa7cf31 Fix #13119: Use email.utils to fix IMAP parsing for names with commas (#13120)
## Type of Change
- [x] Bug fix

## Description
Closes #13119

The current IMAP connector uses `split(',')` to parse email headers,
which crashes when a sender's display name contains a comma inside
quotes (e.g., `"Doe, John" <john@example.com>`).

This PR replaces the manual string splitting with Python's standard
`email.utils.getaddresses`. This correctly handles RFC 5322 quoted
strings and prevents the `RuntimeError: Expected a singular address`.

## Checklist
- [x] I have checked the code and it works as expected.

---------

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2026-02-24 19:18:55 +08:00
..
2025-12-31 17:18:30 +08:00
2025-12-17 15:43:25 +08:00
2026-01-04 19:16:29 +08:00
2025-12-08 12:21:18 +08:00
2025-12-30 15:09:52 +08:00
2025-12-30 15:09:52 +08:00