Files
ragflow/.gitattributes
Jack c23d5fc819 fix(parser): support .msg parsing and make email attachments retrievable (#18198)
- Add Go `EmailParser` support for Outlook `.msg` (OLE2/CFB) files via
the `gomsg` library, in addition to the existing `.eml` (RFC 5322)
support. The `.msg` hard-error is gone; emails with `.msg` attachments
are now ingested end-to-end.
- Re-chunk email attachments into retrievable text (user-oriented). Each
attachment is re-parsed by its file extension through the shared parser
registry and folded back into the same document, so attachment content
becomes searchable. This mirrors Python's legacy `rag/app/email.py`.
Binary attachments (images/audio/video/folders) are skipped by design.
- Restore a corrupted `sample.msg` test fixture and add guards so binary
fixtures are never mangled again (`.gitattributes` marks `*.msg` binary;
`check_files.py` skips NUL-byte files). Also made `check_files.py`
ruff-clean.
2026-08-14 10:38:38 +08:00

10 lines
374 B
Plaintext

*.sh text eol=lf
docker/entrypoint.sh text eol=lf executable
# Binary fixtures must be stored byte-for-byte. Mark them binary so git
# never applies text/CRLF normalization, and so the pre-commit text fixers
# (see tools/hooks/check_files.py) skip them. OLE2 .msg files in particular
# were previously corrupted by the mixed-line-ending / end-of-file fixers.
*.msg binary