#!/usr/bin/env bash # List unread emails (read-only). Run from repo root. set -euo pipefail GITEA_ISSUES_DIR="${GITEA_ISSUES_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || ROOT="$(cd "${GITEA_ISSUES_DIR}/.." && pwd)" export GITEA_ISSUES_DIR export REPO_ROOT="${ROOT}" cd "$ROOT" exec python3 "${GITEA_ISSUES_DIR}/mail-list-unread.py"