jroshell/scripts/ags-emails-fetch.sh

7 lines
No EOL
179 B
Bash
Executable file

#!/bin/bash
CACHE_FILE="${HOME}/.cache/ags/unread-emails.json"
mkdir -p "$(dirname "$CACHE_FILE")"
himalaya envelope list --folder INBOX -o json "not flag seen" > "$CACHE_FILE"