feat(heartbeat): save emails to KB + fix memory symlink access

- heartbeat saves unread whitelisted emails via email_process --save --json
- fix: add --add-dir so Claude CLI subprocess can access memory/ symlink
- email_check/process: use BODY.PEEK[] to avoid marking emails as read
- email_process: simplify credential loading via credential_store only
- config: heartbeat interval 30→120min, quiet hours end 08→07

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 12:10:53 +00:00
parent 08c330a371
commit 19e253ec43
5 changed files with 72 additions and 61 deletions

View File

@@ -77,7 +77,7 @@ def check_inbox(unread_only=True, limit=10):
emails = []
for eid in reversed(email_ids): # Newest first
status, msg_data = mail.fetch(eid, "(RFC822)")
status, msg_data = mail.fetch(eid, "(BODY.PEEK[])")
if status != "OK":
continue