bye sup, hi notmuch/alot

このコミットが含まれているのは:
Felix Van der Jeugt 2017-04-27 18:51:18 +02:00
コミット 55376c70d7
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 58B209295023754D
16個のファイルの変更167行の追加177行の削除

30
config/alot/config ノーマルファイル
ファイルの表示

@ -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 ノーマルファイル
ファイルの表示

@ -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"})