-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_first.yaml
32 lines (27 loc) · 1.2 KB
/
config_first.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
maildir: ~/mail
# if omitted (or null), it will use the same as notmuch would, see notmuch-config(1)
notmuch_config: ~/.config/notmuch/notmuchrc
# only rename if you use mbsync
rename: true
# only apply rules to messages younger than 60 days (to speed things up)
max_age_days: 60
# rule_match_mode can be one of `unique`, `first`, `all` and determines how rules are applied;
# rule_match_mode is optional and defaults to `unique`; the following modes are available:
# - first: the first rule that matches will be applied
# - all: all rules that match will be applied (in order), i.e. a single mail can be moved multiple times
# - unique: like first, but ensure that a mail is only moved once
rule_match_mode: first
rules:
# move mails older than 30 days from Trash to Nirvana;
# if Nirvana is not synced with the remote mailserver, then this is housekeeping for the server side
- folder: Nirvana
query: tag:trash and date:..30_days
# move mails tagged as `trash` to folder `Trash`
- folder: Trash
query: tag:trash
# move mails tagged as `sent` to folder `Sent`
- folder: Sent
query: tag:sent
# move mails tagged as `archive` to folder `Archive`
- folder: Archive
query: tag:archive