#!/bin/sh . $HOME/.shenv # Mark all sent mail as read. mark it as unread first to ensure that # copies of the mail in other folders actually get their maildir Seen # flag added. This is a bug in notmuch; see id:87r1ypsb1p.fsf@tethera.net notmuch tag +unread -- folder:sent notmuch tag -unread -- folder:sent # mark all drafts as drafts, and as read notmuch tag -unread +draft -- folder:drafts # mark all spam as spam notmuch tag +spam -- folder:spam # mark all trash as trash notmuch tag +deleted -- folder:trash # mark messages as read in threads I've killed. don't propagate the # spw::killed tag itself notmuch tag -unread -- 'thread:{tag:spw::killed}'