updated scripts

This commit is contained in:
liph
2026-04-30 13:13:42 +00:00
parent 3992fb9464
commit fd8e28ed14
60 changed files with 2770 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
echo "=== Syncing all mailboxes ==="
# 1. Sync emails bidirectionally (includes deletions)
mbsync -a
# 2. Index each account separately (runs post-new hook)
for account in phil spam; do
echo "Indexing $account..."
NOTMUCH_CONFIG=~/Mail/$account/.notmuch-config notmuch new
done
# 3. Optional: Sync back any tag changes to IMAP flags
for account in phil spam; do
NOTMUCH_CONFIG=~/Mail/$account/.notmuch-config notmuch tag --batch < /dev/null
done
echo "=== Sync complete ==="