From 88f3fbaebf4c3254ee8eac7d4fbdbb3ddc9c18fc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 13 May 2019 13:32:05 +0800 Subject: alot: Tweak config and hooks.py a bit --- _config/alot/config | 2 +- _config/alot/hooks.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to '_config/alot') diff --git a/_config/alot/config b/_config/alot/config index cf68f3e..33a25f6 100644 --- a/_config/alot/config +++ b/_config/alot/config @@ -94,7 +94,7 @@ theme = solarized_light translated = ✉ [[to-me]] translated = ☻ - [[drafts]] + [[draft]] translated = ✎ [[replied]] translated = ✓ diff --git a/_config/alot/hooks.py b/_config/alot/hooks.py index 806959e..27da9fa 100644 --- a/_config/alot/hooks.py +++ b/_config/alot/hooks.py @@ -12,6 +12,7 @@ import alot # Check for missing attachment before sending # +""" async def pre_envelope_send(ui, dbm, __): p = r'.*([Aa]ttach|附件|附图|已附|所附)' e = ui.current_buffer.envelope @@ -19,6 +20,7 @@ async def pre_envelope_send(ui, dbm, __): msg = 'No attachments. Send anyway?' if not (await ui.choice(msg, select='yes')) == 'yes': raise Exception() +""" # Save marked position in search buffer -- cgit v1.2.2