diff options
author | Marc Coquand <marc@coquand.email> | 2024-12-22 11:07:36 +0100 |
---|---|---|
committer | Marc Coquand <marc@coquand.email> | 2024-12-22 11:07:36 +0100 |
commit | 34f3845769670dc5799d60d5201ed8ca637968a5 (patch) | |
tree | ccdcc2c41c9f03407b077bf041dfa86b17226efd /home/dots/mail | |
parent | a17b6a8c552c44c4fde1927bc93c79100e85c4cd (diff) | |
download | guix-34f3845769670dc5799d60d5201ed8ca637968a5.tar.gz guix-34f3845769670dc5799d60d5201ed8ca637968a5.tar.bz2 guix-34f3845769670dc5799d60d5201ed8ca637968a5.zip |
.
Diffstat (limited to 'home/dots/mail')
-rwxr-xr-x | home/dots/mail/.notmuch/hooks/post-new | 13 | ||||
-rwxr-xr-x | home/dots/mail/.notmuch/hooks/pre-new | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/home/dots/mail/.notmuch/hooks/post-new b/home/dots/mail/.notmuch/hooks/post-new new file mode 100755 index 0000000..ef985c0 --- /dev/null +++ b/home/dots/mail/.notmuch/hooks/post-new @@ -0,0 +1,13 @@ +#!/run/current-system/profile/bin/bash + +notmuch tag +work -- folder:/work/ +notmuch tag +home -- folder:/home/ +notmuch tag +receipt -- path:/home/Archive/Receipt/ +notmuch tag +important -- path:/home/Archive/Important/ +notmuch tag +ticket -- path:/home/Archive/Tickets/ +notmuch tag +flight -- path:/home/Archive/Flight/ + +afew --tag --new + + + diff --git a/home/dots/mail/.notmuch/hooks/pre-new b/home/dots/mail/.notmuch/hooks/pre-new new file mode 100755 index 0000000..949d909 --- /dev/null +++ b/home/dots/mail/.notmuch/hooks/pre-new @@ -0,0 +1,8 @@ +#!/run/current-system/profile/bin/bash +notmuch search --output=files "path:/.*/INBOX/" tag:home and tag:deleted | while IFS= read -r f; do mv -v $f $(echo $f | sed 's/INBOX/Trash/' | sed 's/,U=[0-9]*:/:/'); done + +notmuch search --output=files "path:/.*/INBOX/" tag:home and tag:receipt and not tag:inbox | while IFS= read -r f; do mv -v $f $(echo $f | sed 's/INBOX/Archive\/Receipt/' | sed 's/,U=[0-9]*:/:/'); done + +notmuch search --output=files "path:/.*/INBOX/" tag:home and tag:flight and not tag:inbox | while IFS= read -r f; do mv -v $f $(echo $f | sed 's/INBOX/Archive\/Flight/' | sed 's/,U=[0-9]*:/:/'); done + +notmuch search --output=files "path:/.*/INBOX/" tag:home and not tag:inbox | while IFS= read -r f; do mv -v $f $(echo $f | sed 's/INBOX/Archive/' | sed 's/,U=[0-9]*:/:/'); done |