fix: 注释拼写 must_hives → must_haves
This commit is contained in:
@@ -140,7 +140,7 @@ def notify_mail_failed(db_path: Path, original_mail_id: str,
|
||||
"""Mail 失败后以 system 身份给发件人发通知邮件
|
||||
|
||||
直接通过 Blackboard 创建 Task,不走 HTTP API。
|
||||
防递归:检查原邮件 must_hives.system_notify,为 true 则跳过。
|
||||
防递归:检查原邮件 must_haves.system_notify,为 true 则跳过。
|
||||
发件人不是有效 Agent(如 system)→ 通知庞统代处理,避免广播风暴。
|
||||
"""
|
||||
try:
|
||||
@@ -162,7 +162,7 @@ def notify_mail_failed(db_path: Path, original_mail_id: str,
|
||||
original_mail_id)
|
||||
return
|
||||
|
||||
# 获取发件人(优先 assigned_by,fallback must_hives.from)
|
||||
# 获取发件人(优先 assigned_by,fallback must_haves.from)
|
||||
from_agent = original.assigned_by or meta.get("from", "")
|
||||
to_agent = original.assignee or ""
|
||||
title = original.title or ""
|
||||
|
||||
Reference in New Issue
Block a user