Send a single notification through both email and iMessage with unified markdown formatting.
himalaya --version). See references/channels.md for setup.channels.bluebubbles).to_email, to_imessage (E.164 or chat_guid), subject (email), body (markdown).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)```bash
cat << 'EOF' | himalaya template send
From:
To:
Subject:
EOF
```
message tool with channel: "bluebubbles", target: , message: .scripts/format_message.sh reads the body and applies:
## Notification) prepended#, **, bullet markers, and truncates to 2000 charsUsage:
scripts/format_message.sh "Your message body here"
# Outputs two lines: EMAIL_BODY <tab> IMESSAGE_BODY
Both channels are sent by default. To skip a channel:
SKIP_IMESSAGE=1SKIP_EMAIL=1SKIP_EMAIL=1 scripts/format_message.sh "Urgent: server down"
共 3 个版本