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