← 返回
未分类 中文

Cross-Channel Notify

Send the same notification across email (Himalaya) and iMessage (BlueBubbles) in one shot. Use when the user wants to broadcast or notify someone through mul...
一次同时通过邮件(Himalaya)和iMessage(BlueBubbles)发送相同通知。用于用户想要通过多渠道广播或通知某人时使用。
terrycarter1985 terrycarter1985 来源
未分类 clawhub v9.0.0 3 版本 100000 Key: 无需
★ 0
Stars
📥 461
下载
💾 0
安装
3
版本
#latest

概述

Cross-Channel Notify

Send a single notification through both email and iMessage with unified markdown formatting.

Prerequisites

  • Email: Himalaya CLI configured (himalaya --version). See references/channels.md for setup.
  • iMessage: BlueBubbles channel enabled in gateway config (channels.bluebubbles).

Workflow

  1. Collect inputs: to_email, to_imessage (E.164 or chat_guid), subject (email), body (markdown).
  2. Format content: Run scripts/format_message.sh to apply the shared markdown template. This produces two outputs:
    • email_body: full markdown (headers, bullet lists, signature block)
    • imessage_body: compact plain-text (stripped markdown syntax, ≤2000 chars)
  3. Send email:

```bash

cat << 'EOF' | himalaya template send

From:

To:

Subject:

EOF

```

  1. Send iMessage: Use the message tool with channel: "bluebubbles", target: , message: .
  2. Report: Confirm both sends or surface any failures.

Format Template

scripts/format_message.sh reads the body and applies:

  • Title line (## Notification) prepended
  • Timestamp line appended
  • For email: keeps full markdown
  • For iMessage: strips #, **, bullet markers, and truncates to 2000 chars

Usage:

scripts/format_message.sh "Your message body here"
# Outputs two lines: EMAIL_BODY <tab> IMESSAGE_BODY

Channel Selection

Both channels are sent by default. To skip a channel:

  • Email only: set SKIP_IMESSAGE=1
  • iMessage only: set SKIP_EMAIL=1
SKIP_EMAIL=1 scripts/format_message.sh "Urgent: server down"

Error Handling

  • If Himalaya send fails, log the error and continue to iMessage.
  • If iMessage send fails, log the error and report partial failure.
  • Always report which channels succeeded/failed.

版本历史

共 3 个版本

  • v9.0.0 当前
    2026-05-21 13:16 安全 安全
  • v2.0.0
    2026-05-08 13:12 安全 安全
  • v1.0.0
    2026-05-08 03:43

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,163 📥 933,842
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,517 📥 572,907
dev-programming

Code Formatter

terrycarter1985
代码格式化最佳实践及常用语言(Python、JavaScript、JSON、Markdown 等)的快速参考,使用 Prettier、Black、ESLint 等工具。
★ 0 📥 832