From f8649f2913cab3e9c381dfe3d23016866bdf0929 Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Fri, 4 Apr 2025 14:52:00 +0400 Subject: refactor --- notmuch/.config/notmuch/account/config | 16 ++++++++++++++++ notmuch/.config/notmuch/account/hooks | 1 + notmuch/.config/notmuch/hooks/post-new | 30 +++++++++++++++++++----------- 3 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 notmuch/.config/notmuch/account/config create mode 120000 notmuch/.config/notmuch/account/hooks (limited to 'notmuch') diff --git a/notmuch/.config/notmuch/account/config b/notmuch/.config/notmuch/account/config new file mode 100644 index 0000000..dc8d1f7 --- /dev/null +++ b/notmuch/.config/notmuch/account/config @@ -0,0 +1,16 @@ +# vim: filetype=dosini + +[database] +path=/home/chell/Mail/account +[user] +name=Daniil Rozanov +primary_email=account@rozanov.info +[new] +tags=inbox;unread +ignore=.mbsyncstate;.uidvalidity +[search] +exclude_tags=deleted;spam; +[maildir] +synchronize_flags=true +[crypto] +gpg_path=gpg diff --git a/notmuch/.config/notmuch/account/hooks b/notmuch/.config/notmuch/account/hooks new file mode 120000 index 0000000..f631275 --- /dev/null +++ b/notmuch/.config/notmuch/account/hooks @@ -0,0 +1 @@ +../hooks \ No newline at end of file diff --git a/notmuch/.config/notmuch/hooks/post-new b/notmuch/.config/notmuch/hooks/post-new index 992e0b4..1cda0d8 100755 --- a/notmuch/.config/notmuch/hooks/post-new +++ b/notmuch/.config/notmuch/hooks/post-new @@ -1,16 +1,22 @@ #!/bin/sh -notmuch tag +info-gnu -- cc:info-gnu@gnu.org or to:info-gnu@gnu.org -notmuch tag +info-guix -- cc:info-guix@gnu.org or to:info-guix@gnu.org -notmuch tag +sg7 -- cc:sg7@lists.isocpp.org or to:sg7@lists.isocpp.org -notmuch tag +sg13 -- cc:sg13@lists.isocpp.org or to:sg13@lists.isocpp.org -notmuch tag +sg14 -- cc:sg14@lists.isocpp.org or to:sg14@lists.isocpp.org -notmuch tag +sg15 -- cc:sg15@lists.isocpp.org or to:sg15@lists.isocpp.org -notmuch tag +sg16 -- cc:sg16@lists.isocpp.org or to:sg16@lists.isocpp.org -notmuch tag +std-discussion -- cc:std-discussion@lists.isocpp.org or to:std-discussion@lists.isocpp.org -notmuch tag +std-proposals -- cc:std-proposals@lists.isocpp.org or to:std-proposals@lists.isocpp.org -notmuch tag +notmuch -- cc:notmuch@notmuchmail.org or to:notmuch@notmuchmail.org -notmuch tag +rjarry-aerc-discuss -- cc:~rjarry/aerc-discuss@lists.sr.ht or to:~rjarry/aerc-discuss@lists.sr.ht +notmuch tag +info-gnu +maillist -- cc:info-gnu@gnu.org or to:info-gnu@gnu.org +notmuch tag +info-guix +maillist -- cc:info-guix@gnu.org or to:info-guix@gnu.org +notmuch tag +help-guix +maillist -- cc:help-guix@gnu.org or to:help-guix@gnu.org +notmuch tag +sg7 +maillist -- cc:sg7@lists.isocpp.org or to:sg7@lists.isocpp.org +notmuch tag +sg13 +maillist -- cc:sg13@lists.isocpp.org or to:sg13@lists.isocpp.org +notmuch tag +sg14 +maillist -- cc:sg14@lists.isocpp.org or to:sg14@lists.isocpp.org +notmuch tag +sg15 +maillist -- cc:sg15@lists.isocpp.org or to:sg15@lists.isocpp.org +notmuch tag +sg16 +maillist -- cc:sg16@lists.isocpp.org or to:sg16@lists.isocpp.org +notmuch tag +std-discussion +maillist -- cc:std-discussion@lists.isocpp.org or to:std-discussion@lists.isocpp.org +notmuch tag +std-proposals +maillist -- cc:std-proposals@lists.isocpp.org or to:std-proposals@lists.isocpp.org +notmuch tag +notmuch +maillist -- cc:notmuch@notmuchmail.org or to:notmuch@notmuchmail.org +notmuch tag +rjarry-aerc-discuss +maillist -- cc:~rjarry/aerc-discuss@lists.sr.ht or to:~rjarry/aerc-discuss@lists.sr.ht +notmuch tag +pgsql-general +maillist -- cc:pgsql-general@lists.postgresql.org or to:pgsql-general@lists.postgresql.org +notmuch tag +pgsql-general +maillist -- cc:pgsql-general@postgresql.org or to:pgsql-general@postgresql.org +notmuch tag +boost-users +maillist -- cc:boost-users@lists.boost.org or to:boost-users@lists.boost.org +notmuch tag +boost +maillist -- cc:boost@lists.boost.org or to:boost@lists.boost.org +notmuch tag +zsh-users +maillist -- cc:zsh-users@zsh.org or to:zsh-users@zsh.org # Some interesting trashing/trashed, Xing/Xed in general was mentioned @@ -20,3 +26,5 @@ notmuch tag -inbox -unread -draft +sent -- folder:Sent notmuch tag -inbox -unread +draft -- folder:Draft notmuch tag +inbox -- folder:INBOX + +notmuch search --format=text0 --output=files tag:trash | xargs -0 --no-run-if-empty rm -v -- cgit v1.2.3