Files
scripts_serv/sync-mail.sh
2025-12-19 22:56:37 +00:00

14 lines
341 B
Bash
Executable File

#!/bin/bash
# Sync with server (this pushes local changes including deletions)
mbsync -a
# Re-index
notmuch new
# Auto-tag folders
notmuch tag +sent -- folder:Sent and not tag:sent
notmuch tag +draft -- folder:Drafts and not tag:draft
notmuch tag +trash -- folder:Trash and not tag:trash
notmuch tag +spam -- folder:Spam and not tag:spam