swap inbox and archived tags - again
This commit is contained in:
parent
51df7d24e3
commit
5952693319
@ -1,10 +1,10 @@
|
||||
[SpamFilter]
|
||||
[KnownSpammers]
|
||||
|
||||
[FolderNameFilter]
|
||||
folder_blacklist = Inbox Sent Drafts Trash
|
||||
maildir_separator = /
|
||||
|
||||
[SpamFilter]
|
||||
[KnownSpammers]
|
||||
|
||||
[TagOrContact.1]
|
||||
query = tag:posteo
|
||||
|
||||
@ -23,4 +23,9 @@ message = The Unipept alias
|
||||
query = to:unipept@ugent.be
|
||||
tags = +unipept
|
||||
|
||||
[Filter.4]
|
||||
query = tag:dodona and subject:'Onderwijsinstelling aangemaakt voor .*'
|
||||
tags = -new
|
||||
|
||||
[ListMailsFilter]
|
||||
[InboxFilter]
|
||||
|
@ -2,6 +2,13 @@ from afew.filters.BaseFilter import Filter
|
||||
from afew.FilterRegistry import register_filter
|
||||
|
||||
spammers = """
|
||||
golbalpublication.online
|
||||
all.bg
|
||||
vodokanal.poltava.ua
|
||||
qingteng.xyz
|
||||
guaranten.com
|
||||
remedyonlineoa.info
|
||||
pharm2019-sa.com
|
||||
nsitysim.com
|
||||
onlinepublishers.co
|
||||
ijeert.com
|
||||
@ -159,3 +166,4 @@ class KnownSpammers(Filter):
|
||||
|
||||
def handle_message(self, message):
|
||||
self.add_tags(message, 'spam')
|
||||
self.remove_tags(message, 'new')
|
||||
|
1
config/alot/.gitignore
vendored
Normal file
1
config/alot/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
themes/
|
@ -1,5 +1,5 @@
|
||||
|
||||
initial_command = search query:inbox
|
||||
initial_command = search tag:inbox
|
||||
periodic_hook_frequency = 60
|
||||
edit_headers_blacklist = Content-Type, MIME-Version
|
||||
attachment_prefix = /data/temporary
|
||||
@ -22,7 +22,7 @@ theme = "mutt"
|
||||
sendmail_command = /usr/bin/msmtp --account=posteo -t
|
||||
sent_box = maildir:///data/mail/posteo/Sent
|
||||
draft_box = maildir:///data/mail/posteo/Drafts
|
||||
sent_tags = posteo
|
||||
sent_tags = posteo,inbox
|
||||
passed_tags = # none
|
||||
sign_by_default = False
|
||||
|
||||
@ -40,7 +40,7 @@ theme = "mutt"
|
||||
sendmail_command = /usr/bin/msmtp --account=gmail -t
|
||||
sent_box = maildir:///data/mail/gmail/Sent
|
||||
draft_box = maildir:///data/mail/gmail/Sent
|
||||
sent_tags = gmail
|
||||
sent_tags = gmail,inbox
|
||||
passed_tags = # none
|
||||
sign_by_default = True
|
||||
|
||||
@ -58,7 +58,7 @@ theme = "mutt"
|
||||
sendmail_command = /usr/bin/msmtp --account=ugent -t
|
||||
sent_box = maildir:///data/mail/ugent/Sent
|
||||
draft_box = maildir:///data/mail/ugent/Sent
|
||||
sent_tags = ugent
|
||||
sent_tags = ugent,inbox
|
||||
passed_tags = # none
|
||||
sign_by_default = True
|
||||
|
||||
@ -74,7 +74,7 @@ theme = "mutt"
|
||||
sendmail_command = /usr/bin/true
|
||||
sent_box = maildir:///data/mail/todo
|
||||
draft_box = maildir:///data/mail/todo
|
||||
sent_tags = todo
|
||||
sent_tags = todo,inbox
|
||||
passed_tags = # none
|
||||
|
||||
|
||||
@ -84,23 +84,23 @@ theme = "mutt"
|
||||
n = compose --sender todo@localhost --to todo
|
||||
|
||||
[[search]]
|
||||
x = tag spam
|
||||
a = tag archived
|
||||
A = untag archived
|
||||
x = toggletags spam,inbox
|
||||
a = untag inbox
|
||||
A = tag inbox
|
||||
|
||||
[[thread]]
|
||||
a = tag archived ; fold
|
||||
A = untag archived ; unfold
|
||||
a = untag inbox ; fold
|
||||
A = tag inbox ; unfold
|
||||
n = nextpart
|
||||
p = prevpart
|
||||
u = pipeto --background selecturl
|
||||
|
||||
[tags]
|
||||
|
||||
[[encrypted]]
|
||||
[[inbox]]
|
||||
translated =
|
||||
|
||||
[[archived]]
|
||||
[[encrypted]]
|
||||
translated =
|
||||
|
||||
[[replied]]
|
||||
|
0
config/alot/hooks.py
Normal file
0
config/alot/hooks.py
Normal file
@ -88,4 +88,4 @@ exclude_tags=spam;
|
||||
synchronize_flags=true
|
||||
|
||||
[query]
|
||||
inbox=not tag:spam and not tag:archived
|
||||
inbox=tag:inbox
|
||||
|
@ -1,6 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
afew --tag --new
|
||||
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
|
||||
notmuch tag -new +unread -- tag:new
|
||||
notmuch tag -new -unread -- tag:spam
|
||||
notmuch search tag:unread | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
|
||||
|
Loading…
Reference in New Issue
Block a user