Files
Clawd BotandClaude Opus 4.6 ca9b510922 chore: align with upstream openclaw/openclaw and overlay local additions
- Reset master to upstream/main (16,697 commits)
- Overlay 2,271 local-only files (skills, tools, workspace, configs, apps)
- Restore IDENTITY.md and USER.md templates
- Build verified, gateway running, Discord working

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-03 07:40:46 +01:00

27 lines
677 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Usage: forward.sh <backend> <message-id> <dest-email>
BACKEND=${1:-}
ID=${2:-}
DEST=${3:-}
if [[ -z "$BACKEND" || -z "$ID" || -z "$DEST" ]]; then
echo "Usage: $0 <backend> <message-id> <dest-email>" >&2
exit 2
fi
case "$BACKEND" in
outlook)
node ./forward_outlook.cjs "$ID" "$DEST" || { echo "Outlook forward failed" >&2; exit 1; }
;;
gmail)
node ./forward_gmail.cjs "$ID" "$DEST" || { echo "Gmail forward failed" >&2; exit 1; }
;;
himalaya)
echo "Himalaya: use himalaya message forward <id> <dest> (not automated)" >&2
exit 2
;;
*)
echo "Unknown backend: $BACKEND" >&2
exit 2
;;
esac