#!/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
