diff options
author | Marc Coquand <marc@coquand.email> | 2025-01-07 17:52:53 +0100 |
---|---|---|
committer | Marc Coquand <marc@coquand.email> | 2025-01-07 17:52:53 +0100 |
commit | d5ac7d2ef562c276225f6f9019be7b9a00d399a2 (patch) | |
tree | ffed2b816f238b98e785cb64d2f87d9ac4397a1a /home/dots/mail/.notmuch/hooks | |
parent | 34f3845769670dc5799d60d5201ed8ca637968a5 (diff) | |
download | guix-d5ac7d2ef562c276225f6f9019be7b9a00d399a2.tar.gz guix-d5ac7d2ef562c276225f6f9019be7b9a00d399a2.tar.bz2 guix-d5ac7d2ef562c276225f6f9019be7b9a00d399a2.zip |
.
Diffstat (limited to 'home/dots/mail/.notmuch/hooks')
-rwxr-xr-x | home/dots/mail/.notmuch/hooks/post-new | 9 | ||||
-rwxr-xr-x | home/dots/mail/.notmuch/hooks/pre-new | 8 |
2 files changed, 10 insertions, 7 deletions
diff --git a/home/dots/mail/.notmuch/hooks/post-new b/home/dots/mail/.notmuch/hooks/post-new index ef985c0..be2f5bb 100755 --- a/home/dots/mail/.notmuch/hooks/post-new +++ b/home/dots/mail/.notmuch/hooks/post-new @@ -9,5 +9,14 @@ notmuch tag +flight -- path:/home/Archive/Flight/ afew --tag --new +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 + +# work +notmuch search --output=files "path:/.*/INBOX/" tag:work and tag:deleted | while IFS= read -r f; do mv -v $f $(echo $f | sed 's/INBOX/\[Gmail\]\/Trash/' | sed 's/,U=[0-9]*:/:/'); done +#notmuch search --output=files "path:/.*/INBOX/" and tag:work and not tag:inbox | while IFS= read -r f; do mv -v $f $(echo $f | sed 's/INBOX/\[Gmail\]\/All Mail/' | sed 's/,U=[0-9]*:/:/'); done diff --git a/home/dots/mail/.notmuch/hooks/pre-new b/home/dots/mail/.notmuch/hooks/pre-new index 949d909..b39a33c 100755 --- a/home/dots/mail/.notmuch/hooks/pre-new +++ b/home/dots/mail/.notmuch/hooks/pre-new @@ -1,8 +1,2 @@ #!/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 +# Home |