feat: .eml email document reader (The eml file cannot have a license added.) #381
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description | 描述
This PR adds a new document reader implementation for parsing email files (EML format) in Spring AI. The implementation provides comprehensive support for email parsing, including:
本 PR 为 Spring AI 添加了一个新的文档读取器实现,用于解析邮件文件(EML 格式)。该实现提供了全面的邮件解析支持,包括:
Email Content Processing | 邮件内容处理
Metadata Extraction | 元数据提取
Attachment Handling | 附件处理
Robust Error Handling | 健壮的错误处理
Implementation Details | 实现细节
Core Classes | 核心类
EmlEmailDocumentReader
EmailParser
EmailElement
Test Coverage | 测试覆盖
Comprehensive test suite covering: | 全面的测试套件覆盖:
Dependency | 依赖
Testing | 测试
All test cases pass successfully: | 所有测试用例成功通过:
should_read_pull_request_email
| 读取拉取请求邮件should_read_html_recruitment_email
| 读取 HTML 招聘邮件should_read_code_review_comment_email
| 读取代码审查评论邮件should_read_email_with_attachments
| 读取带附件的邮件should_decode_q_encoded_subject
| 解码 Q 编码的主题should_handle_base64_encoded_email_headers
| 处理 Base64 编码的邮件头Code Quality | 代码质量
License | 许可证
Licensed under the Apache License, Version 2.0. | 基于 Apache License 2.0 许可证。