blob: 5a02ff0ddc97b69b90a321e7f0f713233c16e948 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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)'
# 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
|