diff --git a/config/alot/config b/config/alot/config index 6bb882e..6c8e494 100644 --- a/config/alot/config +++ b/config/alot/config @@ -1,5 +1,5 @@ -initial_command = search (tag:inbox OR tag:draft) AND NOT tag:killed +initial_command = search NOT tag:killed AND NOT tag:archived periodic_hook_frequency = 60 attachment_prefix = /data/temporary @@ -15,7 +15,7 @@ prefer_plaintext = True sendmail_command = /usr/bin/msmtp --account=gmail -t sent_box = maildir:///data/mail/gmail/Sent draft_box = maildir:///data/mail/gmail/Sent - sent_tags = inbox + sent_tags = # none sign_by_default = True [[[abook]]] @@ -33,7 +33,7 @@ prefer_plaintext = True sendmail_command = /usr/bin/msmtp --account=ugent -t sent_box = maildir:///data/mail/ugent/Sent draft_box = maildir:///data/mail/ugent/Sent - sent_tags = inbox + sent_tags = # none sign_by_default = True [[[abook]]] @@ -45,4 +45,7 @@ prefer_plaintext = True [bindings] t = toggletags selected; move down - x = 'toggletags inbox,killed' + + [[search]] + x = toggletags killed + a = toggletags archived diff --git a/notmuch-config b/notmuch-config index b78915f..d5e5444 100644 --- a/notmuch-config +++ b/notmuch-config @@ -61,7 +61,7 @@ ignore= # query will override that exclusion. # [search] -exclude_tags=deleted;spam; +exclude_tags=killed;deleted;spam; # Maildir compatibility configuration # diff --git a/notmuch-hooks/post-new b/notmuch-hooks/post-new index b768d63..174cb25 100755 --- a/notmuch-hooks/post-new +++ b/notmuch-hooks/post-new @@ -1,11 +1,11 @@ #!/bin/sh # some filtering -notmuch tag +killed -new -- subject:'^[SPAM]' to:ugent +notmuch tag +killed -new -unread -- subject:'^[SPAM]' to:ugent # notify for new messages notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send -# put new messages in the inbox -notmuch tag +inbox -new -- tag:new +# processed new messages are no longer new +notmuch tag -new -- tag:new