diff options
author | Case Duckworth | 2023-05-13 23:50:35 -0500 |
---|---|---|
committer | Case Duckworth | 2023-05-13 23:50:35 -0500 |
commit | 832af38380ba5b6a020b034059b4bc5ff7443ded (patch) | |
tree | fce4708280ff964d80a9808ed6826a1f3799e804 /notmuch/default/hooks/post-new | |
parent | uhhhh (diff) | |
download | etc-832af38380ba5b6a020b034059b4bc5ff7443ded.tar.gz etc-832af38380ba5b6a020b034059b4bc5ff7443ded.zip |
uhhh
Diffstat (limited to 'notmuch/default/hooks/post-new')
-rwxr-xr-x | notmuch/default/hooks/post-new | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/notmuch/default/hooks/post-new b/notmuch/default/hooks/post-new index 744c334..b60ea78 100755 --- a/notmuch/default/hooks/post-new +++ b/notmuch/default/hooks/post-new | |||
@@ -13,10 +13,10 @@ | |||
13 | # When I have that installed, I want to move this to ~/.config/notmuch. | 13 | # When I have that installed, I want to move this to ~/.config/notmuch. |
14 | 14 | ||
15 | # Update tags based on folders | 15 | # Update tags based on folders |
16 | for fdir in ~/var/mail/fastmail/* ; do | 16 | # for fdir in ~/var/mail/fastmail/* ; do |
17 | if [[ $(basename "$fdir") != "INBOX" ]]; then | 17 | # if [[ $(basename "$fdir") != "INBOX" ]]; then |
18 | notmuch tag +$(basename "$fdir") -inbox -- "folder:${fdir##$HOME/var/mail/}" | 18 | # notmuch tag +$(basename "$fdir") -inbox -- "folder:${fdir##$HOME/var/mail/}" |
19 | fi | 19 | # fi |
20 | done | 20 | # done |
21 | 21 | ||
22 | notmuch tag --batch --input="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch/post-new.tags" | 22 | notmuch tag --batch --input="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch/post-new.tags" |