Skip to content

Feat: location rule for http - #10901

Merged
KevinHuSh merged 5 commits into
infiniflow:mainfrom
Lynn-Inf:main
Nov 3, 2025
Merged

KevinHuSh merged 5 commits into
infiniflow:mainfrom
Lynn-Inf:main

Conversation

@Lynn-Inf

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Location rule for http.

Type of change

  • New Feature (non-breaking change which adds functionality)

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 30, 2025
@Lynn-Inf Lynn-Inf added 💞 feature Feature request, pull request that fullfill a new feature. ci Continue Integration labels Oct 30, 2025
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Oct 31, 2025
@KevinHuSh
KevinHuSh merged commit 061d8f7 into infiniflow:main Nov 3, 2025
clifftseng pushed a commit to clifftseng/ragflow that referenced this pull request Feb 9, 2026
### What problem does this PR solve?

Location rule for http.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
JessYanCoding added a commit to JessYanCoding/ragflow that referenced this pull request Sep 14, 2026
Two regressions in Parser._email, the first masking the second.

_add_content recurses correctly but both leaf branches read the enclosing
msg instead of their own `m` parameter. get_payload(decode=True) on a
multipart container returns None, so None.decode(charset) raised
AttributeError for every multipart message -- including a plain+HTML mail
with no attachment. Single-part messages worked only because there msg is
the part. 061d8f7 (infiniflow#10901) introduced this while copying in the charset
fallback chain; the code it replaced read `m`.

Attachments were then force-decoded with part.get_content_charset(),
which is None for any binary part, and with a hardcoded utf-8 in the .msg
branch. Both raise. 7fb8b30 (infiniflow#10506) introduced both call sites; the
.msg line it replaced was annotated `# binary`. Attachments are in the
shipped default field list, so this was the default configuration.

Text attachments now go through the charset fallback chain infiniflow#10920 added
for rag/app/email.py, lifted to a method-level helper so the body and
attachment paths share it. Binary attachments keep their filename and
contribute no payload text; re-parsing their content by extension, as
rag/app/email.py and the Go parser both do, is infiniflow#6560 and out of scope.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration 💞 feature Feature request, pull request that fullfill a new feature. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants