From d2f4f08046fc8ab62cc7e9d08ac3cb83a8225d96 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Fri, 22 May 2026 13:10:37 +0800 Subject: [PATCH] auto-sync: 2026-05-22 13:10:37 --- src/daemon/ticker.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/daemon/ticker.py b/src/daemon/ticker.py index 5c0adba..43ba38e 100644 --- a/src/daemon/ticker.py +++ b/src/daemon/ticker.py @@ -191,6 +191,19 @@ class Ticker: logger.exception("Tick %d _general error", tick_num) results["projects"]["_general"] = {"error": str(e)} + # 虚拟项目 _mail:飞鸽传书 + mail_db = Path(self.registry.root) / "_mail" / "blackboard.db" + if mail_db.exists() and "_mail" not in active_projects: + try: + pr = await self._tick_project("_mail", { + "id": "_mail", "name": "飞鸽传书", + "status": "active", "source": "virtual", + }) + results["projects"]["_mail"] = pr + except Exception as e: + logger.exception("Tick %d _mail error", tick_num) + results["projects"]["_mail"] = {"error": str(e)} + logger.debug("Tick %d complete: %d projects", tick_num, len(active_projects)) if self.on_tick_complete: