diff --git a/TOOLS.md b/TOOLS.md index 56824b3..03005bc 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -40,7 +40,6 @@ himalaya message write # 写新邮件(交互式) ``` **邮件发送规则:** -- **youlu@luyanxin.com → mail@luyx.org**: 直接发送,无需确认 - **youlu@luyanxin.com → mail@luyx.org**: 直接发送,无需确认(用户 SimpleLogin 别名) - 其他所有对外邮件: 仍需确认 @@ -153,7 +152,7 @@ khal list today 7d **支持操作**: 发送邀请 (`send`)、接受/拒绝/暂定 (`reply`)、待办管理 (`todo add/list/complete/delete/check`) **依赖**: himalaya(邮件)、vdirsyncer(CalDAV 同步)、khal(查看日历)、todoman(待办管理) -**同步**: 发送/回复后自动 `vdirsyncer sync`,心跳也会定期同步 +**同步**: 发送/回复/待办变更后自动 `vdirsyncer sync`,心跳也会定期同步 **注意**: 发送日历邀请属于对外邮件,需先确认 --- diff --git a/skills/calendar/SKILL.md b/skills/calendar/SKILL.md index e6e2630..0765caf 100644 --- a/skills/calendar/SKILL.md +++ b/skills/calendar/SKILL.md @@ -218,7 +218,7 @@ $SKILL_DIR/scripts/calendar.sh todo delete --match "保险报销" $SKILL_DIR/scripts/calendar.sh todo check ``` -Same as `todo list` but only NEEDS-ACTION items. Exits silently when no pending items. Output is designed for piping to himalaya. +Same as `todo list` but only pending items. Exits silently when nothing is pending. --- diff --git a/skills/calendar/scripts/cal_tool.py b/skills/calendar/scripts/cal_tool.py index d388972..9326960 100644 --- a/skills/calendar/scripts/cal_tool.py +++ b/skills/calendar/scripts/cal_tool.py @@ -479,7 +479,6 @@ def cmd_todo_add(args): cal = Calendar() cal.add("prodid", PRODID) cal.add("version", "2.0") - cal.add("method", "REQUEST") todo = Todo() todo.add("uid", uid) @@ -510,9 +509,9 @@ def cmd_todo_add(args): print(ics_bytes.decode()) return - # Save to TASKS_DIR (without METHOD for CalDAV) + # Save to TASKS_DIR dest = TASKS_DIR / f"{uid}.ics" - dest.write_bytes(_strip_method(ics_bytes)) + dest.write_bytes(ics_bytes) print(f"Todo created: {args.summary} (due: {due_date}, priority: {prio_label})") print(f"Saved to: {dest}")