Built by a PhD whose memory was failing, whose diet was a mess, and whose anxiety had its own agenda. Most second brain tools ignore the fact that your brain doesn't work in isolation: your body and your mental health are part of the system too. This crew handles all three: knowledge, nutrition, and mental wellness.
Shell
#!/usr/bin/env bash
# List Hey Imbox (screened-in, high priority emails)
# Usage: hey-imbox [--json]
set -euo pipefail
if [[ "${1:-}" == "--json" ]]; then
hey box imbox --json
else
hey box imbox --json | python3 -c "
import json, sys
data = json.load(sys.stdin)
for p in data.get('data', {}).get('postings', []):
date = p.get('active_at', '')[:10]
sender = p.get('creator', {}).get('name', '')[:30]
subj = p.get('name', '')[:65]
tid = p.get('app_url', '').split('/')[-1]
print(f'{date} | {sender:30} | {subj} | {tid}')
"
fi