#!/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 notmuch tag +sent -unread -inbox -- folder:m.r.karimi.j@gmail.com/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)' notmuch tag -unread +sent -- '(from:"m.r.karimi.j@gmail.com*" not to:"m.r.karimi.j@gmail.com*" not tag:archived)'