- 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]>
26 lines
696 B
Bash
26 lines
696 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
# Usage: get.sh <backend> <message-id>
|
|
BACKEND=${1:-}
|
|
ID=${2:-}
|
|
if [[ -z "$BACKEND" || -z "$ID" ]]; then
|
|
echo "Usage: $0 <backend> <message-id>" >&2
|
|
exit 2
|
|
fi
|
|
case "$BACKEND" in
|
|
outlook)
|
|
node ../../skills/gmail-reader/get-o365-message.cjs "$ID" || { echo "Failed to fetch Outlook message" >&2; exit 1; }
|
|
;;
|
|
gmail)
|
|
node ../../skills/gmail-reader/get-gmail-message.cjs "$ID" || { echo "Failed to fetch Gmail message" >&2; exit 1; }
|
|
;;
|
|
himalaya)
|
|
echo "Himalaya get by id not implemented; use envelope list or message export with himalaya." >&2
|
|
exit 2
|
|
;;
|
|
*)
|
|
echo "Unknown backend: $BACKEND" >&2
|
|
exit 2
|
|
;;
|
|
esac
|