auto: sync OpenClaw config 2026-07-15 14:00

This commit is contained in:
2026-07-15 14:00:48 +08:00
parent 54c9c9f07a
commit a9b8497b9d
34 changed files with 715 additions and 370 deletions
@@ -57,40 +57,17 @@ https://minio.climbcube.cn/img/202606260843249.jpg
### 3. 发送方式
使用 Python 构造**多段邮件**(同时含纯文本和 HTML),然后通过 himalaya 存入草稿箱。
使用 Python 构造**多段邮件**(同时含纯文本和 HTML),然后通过 IMAP APPEND 存入钉邮草稿箱。
HTML 版签名区应该包含 `<img>` 标签嵌入签名图片
```html
<img src="https://minio.climbcube.cn/img/202606260843249.jpg" alt="签名" style="max-width:200px; height:auto;">
调用脚本
```bash
python3 /home/yangxuan/.openclaw/workspace-resume/send_weekly_report.py
```
**生成命令模板**
```bash
python3 << 'PYEOF'
import email
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.header import Header
plain_body = """..."""
html_text = """..."""
msg = MIMEMultipart('related')
msg['From'] = Header('杨轩', 'utf-8').encode() + ' <yangxuan@witsoft.cn>'
msg['To'] = Header('刘强', 'utf-8').encode() + ' <liuqiang@witsoft.cn>'
msg['Cc'] = Header('吴睿东', 'utf-8').encode() + ' <wurd@witsoft.cn>, ' + Header('陈明', 'utf-8').encode() + ' <chenm@witsoft.cn>, ' + Header('曾莉', 'utf-8').encode() + ' <zengli@witsoft.cn>'
msg['Subject'] = Header('G5开发周报 (...)', 'utf-8').encode()
alt = MIMEMultipart('alternative')
alt.attach(MIMEText(plain_body, 'plain', 'utf-8'))
alt.attach(MIMEText(html_text, 'html', 'utf-8'))
msg.attach(alt)
with open('/tmp/weekly-report-YYYY-MM-DD.eml', 'w') as f:
f.write(msg.as_string())
PYEOF
himalaya message save --folder "草稿" < /tmp/weekly-report-YYYY-MM-DD.eml
或直接执行 Python 代码
```python
from send_weekly_report import send_to_drafts
send_to_drafts(plain_body, html_body, "YYYY-MM-DD ~ YYYY-MM-DD")
```
### 4. 最后通知