From 4bf0b73da6b199153f118a1706d39c6d5ae6a359 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 9 May 2017 08:53:03 +0200 Subject: [PATCH] show sent mails in inbox --- config/alot/config | 4 ++-- config/alot/hooks.py | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/config/alot/config b/config/alot/config index b7e544c..a3b13b7 100644 --- a/config/alot/config +++ b/config/alot/config @@ -11,7 +11,7 @@ periodic_hook_frequency = 60 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 + sent_tags = inbox, gmail sign_by_default = True [[ugent]] @@ -22,7 +22,7 @@ periodic_hook_frequency = 60 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 + sent_tags = inbox, ugent sign_by_default = True [bindings] diff --git a/config/alot/hooks.py b/config/alot/hooks.py index ae3456a..f9c907a 100644 --- a/config/alot/hooks.py +++ b/config/alot/hooks.py @@ -1,6 +1,5 @@ from alot.commands.globals import ExternalCommand -from alot.commands.search import OpenThreadCommand def loop_hook(ui=None): ui.apply_command(ExternalCommand( @@ -10,7 +9,3 @@ def loop_hook(ui=None): 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"}) -