contacts: support multiple address book collections

Migadu exposes "family" and "business" address books via CardDAV.
The contacts script now searches all subdirs under contacts/ and
adds new contacts to the "family" collection by default.
This commit is contained in:
Yanxin Lu
2026-03-31 13:33:04 -07:00
parent 3825f3dcdb
commit 0910bd5d5c
4 changed files with 20 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ cat msg.txt | $HIMALAYA template send # 发送邮件(校验收件人)
### 通讯录contacts
**目录**: `~/.openclaw/workspace/skills/contacts/`
**数据**: `~/.openclaw/workspace/contacts/default/`vCard .vcf 文件CardDAV 同步)
**数据**: `~/.openclaw/workspace/contacts/`vCard .vcf 文件,按 Migadu 地址簿分目录,CardDAV 同步)
```bash
CONTACTS=~/.openclaw/workspace/skills/contacts/scripts/contacts.sh