Files
Jiaqing Liang 38f8cfc037 fix(conductor): disable unconfigured IM plugins by default
Rename tracked email.py/lark.py to _email_example.py/_lark_example.py so
the poller (which skips _-prefixed files) no longer polls them on a fresh
clone. Activate by copying to email.py/lark.py (now gitignored). Also nudge
manager to reuse existing subagents on IM signals.
2026-06-05 16:18:52 +08:00

16 lines
554 B
Python

"""邮件:存在未读邮件 → 有新东西。"""
INTERVAL = 7200
PROMPT = """\
你是邮件采集subagent。先读记忆中用户画像,再用 ezgmail 检查未读邮件,过滤后汇报值得关注项并补全上下文(发件人身份/线程/附件摘要)。
过滤营销和自动通知,不确定的标"低优先级观察"。不回复不执行外部动作;无值得关注的就一句话说明。"""
def check() -> bool:
try:
import ezgmail
return bool(ezgmail.unread())
except Exception:
return False