bye sup, hi notmuch/alot
This commit is contained in:
parent
911acc84d4
commit
55376c70d7
16 changed files with 167 additions and 177 deletions
30
config/alot/config
Normal file
30
config/alot/config
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
initial_command = search tag:inbox OR tag:draft AND NOT tag:killed
|
||||
periodic_hook_frequency = 60
|
||||
|
||||
[accounts]
|
||||
|
||||
[[gmail]]
|
||||
realname = Felix Van der Jeugt
|
||||
address = felix.vanderjeugt@gmail.com
|
||||
alias_regexp = felix\.vanderjeugt\+.+@gmail.com
|
||||
sendmail_command = /usr/bin/msmtp --account=gmail -t
|
||||
sent_box = maildir:///data/mail/gmail/Sent
|
||||
draft_box = maildir:///data/mail/gmail/Sent
|
||||
sent_tags = sent, gmail
|
||||
sign_by_default = True
|
||||
|
||||
[[ugent]]
|
||||
realname = Felix Van der Jeugt
|
||||
address = felix.vanderjeugt@ugent.be
|
||||
aliases = Felix.VanderJeugt@UGent.be,
|
||||
gpg_key = 68FF561137C38F9618E97339AF25A2C2862AA368
|
||||
sendmail_command = /usr/bin/msmtp --account=ugent -t
|
||||
sent_box = maildir:///data/mail/ugent/Sent
|
||||
draft_box = maildir:///data/mail/ugent/Sent
|
||||
sent_tags = sent, ugent
|
||||
sign_by_default = True
|
||||
|
||||
[bindings]
|
||||
|
||||
P = shellescape --thread True --refocus True notmuch\ new\ --quiet
|
16
config/alot/hooks.py
Normal file
16
config/alot/hooks.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
from alot.commands.globals import ExternalCommand
|
||||
from alot.commands.search import OpenThreadCommand
|
||||
|
||||
def loop_hook(ui=None):
|
||||
ui.apply_command(ExternalCommand(
|
||||
["notmuch", "new", "--quiet"],
|
||||
thread=True,
|
||||
))
|
||||
if ui and ui.current_buffer:
|
||||
ui.update()
|
||||
|
||||
def post_search_select(ui=None, dbm=None, cmd=None):
|
||||
if isinstance(cmd, OpenThreadCommand):
|
||||
cmd.thread.remove_tags({"unread"})
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue