An HTML-only inbound email reaches its trigger with HTML character references left in the text
維護者通常 1 天內回覆
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- typescript
- 領域
- backend
研究方向
Start in server/src/responsibilities/email.ts at extractEmailText and trace the HTML branch that strips tags and collapses whitespace. Reproduce with the HTML-only sample in the issue, then check whether the extracted text decodes its character references to match the expected output. Issue #807 is already an open linked pull request.
由索引模型根據 Issue 內容生成。
描述
An email trigger (SES -> SNS -> /sns) reads an HTML-only mail through extractEmailText in server/src/responsibilities/email.ts. The HTML branch strips <style>, <script> and every tag, then collapses whitespace. It never decodes character references, so the payload text the Bot receives keeps them as written.
A mail whose only part is:
Content-Type: text/html; charset=utf-8
<p>Q3 numbers for AT&T: margin < 5%, we’re "on track"</p>
reaches the Bot as:
Q3 numbers for AT&T: margin < 5%, we’re "on track"
Expected
Q3 numbers for AT&T: margin < 5%, we’re "on track"
Outlook and most HTML editors write , & and numeric references such as ’ throughout a message, so an HTML-only mail is read, quoted and summarised with these sequences in it.
Reproduce
import { extractEmailText } from "./server/src/responsibilities/email";
extractEmailText("Content-Type: text/html\r\n\r\n<p>AT&T ok</p>");
// "AT&T ok"
Found on main at 12c3a69.
- 主要語言
- TypeScript
- 星號
- 6.6k
- 分支
- 914
- 平均合併
- 22 小時 56 分鐘
- 30 天內合併 PR
- 141
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CopilotKit/OpenBot 的其他 Issue
-
Wrong key location at startup可能已有人在做 @charan-rathore 於 2 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 68/100
CopilotKit/OpenBot#800 ·
維護者通常 1 天內回覆
-
setup-learning.ts fails on Windows with "spawn npx.cmd EINVAL"可能已有人在做 @Caldas 於 5 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 80/100
CopilotKit/OpenBot#792 ·
維護者通常 1 天內回覆
-
Remote AG-UI Bots can't use the browser in chat: `computer_*` calls refused as "unavailable for this headless turn"可能已有人在做 @charan-rathore 於 2 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 68/100
CopilotKit/OpenBot#804 ·
維護者通常 1 天內回覆
-
難度 4/5 一週以上 新手友好度 22/100
CopilotKit/OpenBot#786 ·
維護者通常 1 天內回覆
-
server/tests leaks database connections: 55 files open a pool and never close it可能已有人在做 @adamsiwiec1 於 4 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 70/100
CopilotKit/OpenBot#785 ·
維護者通常 1 天內回覆
查看 CopilotKit/OpenBot 的全部 Issue
相似的 Issue
-
area:workflow bug ready-for-human
難度 1/5 1 小時以內 新手友好度 78/100
fil-donadoni/tolaria#6108 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
apache/rocketmq-dashboard#7234 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
vitest-dev/vitest#11656 ·
維護者通常 1 天內回覆
-
e2e-failure ready-to-code
難度 2/5 1-3 小時 新手友好度 68/100
redhat-developer/rhdh-plugin-export-overlays#4460 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
ehmpathy/rhachet-roles-bhrain#655 ·
維護者通常 1 天內回覆