fix: skip already-processing UIDs at FETCH level to avoid downloading email content

This commit is contained in:
earthjasonlin committed 2026-07-13 07:35:28 +08:00
1 parent d31ec18ea3
commit 155a6dfc53
4 files changed
+17 -9

No files matched your search

+2 -1
View File
@@ -193,7 +193,8 @@ def _summary_keyboard(can_reply: bool = True, is_promotion: bool = False, links:
for link in (links or []):
url = link.get("url", "")
text = link.get("text", "打开链接")[:30]
if url.startswith("http"):
# 校验 URL:合法 http/https,无多重协议头,长度合理
if url.startswith("http") and url.count("://") == 1 and len(url) < 200:
kb.append([{"text": f"🔗 {text}", "url": url}])
return {"inline_keyboard": kb}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.