bye sup, hi notmuch/alot

This commit is contained in:
Felix Van der Jeugt 2017-04-27 18:51:18 +02:00
parent 911acc84d4
commit 55376c70d7
No known key found for this signature in database
GPG key ID: 58B209295023754D
16 changed files with 167 additions and 177 deletions

30
config/alot/config Normal file
View 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
View 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"})