#!/bin/sh # tag emails in the Deleted folder as deleted notmuch tag +deleted -unread -inbox -- folder:mit/Deleted # tag emails in the Deleted folder as deleted notmuch tag +archived -unread -inbox -- folder:mit/Archive # tag emails in the Deleted folder as deleted notmuch tag +sent -unread -inbox -- folder:mit/Sent # remove "unread" from "replied" notmuch tag -unread -- tag:replied # tag my replies as "sent" notmuch tag -unread +sent -- '(from:"moreka@mit.edu*" not to:"moreka@mit.edu*" not to:"moreka@MIT.EDU*" not tag:archived)' # tag 18650 stuff for spring 26 correctly notmuch tag +18650 -- '(("18650" or "18.650" or body:"/18\.?650/" or subject:"/18\.?650/" or from:"18.650 on Piazza" or from:"MIT-Canvas") and date:2025-12-22..)' notmuch tag +18650 +18650org -- from:18650-spring26-org@mit.edu