diff --git a/config/alot/hooks.py b/config/alot/hooks.py index 0c9d05b..cc8f71d 100644 --- a/config/alot/hooks.py +++ b/config/alot/hooks.py @@ -8,6 +8,7 @@ async def delay(ui, days): async def spam(ui): from alot.buffers import EnvelopeBuffer from alot.db.envelope import Envelope + from alot.settings.const import settings message = ui.current_buffer.get_selected_message() message.add_tags(['spam']) message.remove_tags(['unread']) @@ -18,6 +19,7 @@ async def spam(ui): Subject=['spam'], References=['<' + message.get_message_id() + '>']), bodytext='spam', - tags=['spam']) + tags=['spam'], + account=settings.account_matching_address('felix.vanderjeugt@ugent.be')) envelope.attach(message.get_filename()) ui.buffer_open(EnvelopeBuffer(ui, envelope)) diff --git a/local/bin/alot b/local/bin/alot index 71004de..dfe4ef9 100755 --- a/local/bin/alot +++ b/local/bin/alot @@ -1,6 +1,6 @@ #!/usr/bin/python3 -# EASY-INSTALL-ENTRY-SCRIPT: 'alot==0.8.1','console_scripts','alot' -__requires__ = 'alot==0.8.1' +# EASY-INSTALL-ENTRY-SCRIPT: 'alot==0.9','console_scripts','alot' +__requires__ = 'alot==0.9' import re import sys from pkg_resources import load_entry_point @@ -8,5 +8,5 @@ from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( - load_entry_point('alot==0.8.1', 'console_scripts', 'alot')() + load_entry_point('alot==0.9', 'console_scripts', 'alot')() )