new version of alot requires the account set
This commit is contained in:
parent
dde079d34f
commit
ad46ab6212
@ -8,6 +8,7 @@ async def delay(ui, days):
|
|||||||
async def spam(ui):
|
async def spam(ui):
|
||||||
from alot.buffers import EnvelopeBuffer
|
from alot.buffers import EnvelopeBuffer
|
||||||
from alot.db.envelope import Envelope
|
from alot.db.envelope import Envelope
|
||||||
|
from alot.settings.const import settings
|
||||||
message = ui.current_buffer.get_selected_message()
|
message = ui.current_buffer.get_selected_message()
|
||||||
message.add_tags(['spam'])
|
message.add_tags(['spam'])
|
||||||
message.remove_tags(['unread'])
|
message.remove_tags(['unread'])
|
||||||
@ -18,6 +19,7 @@ async def spam(ui):
|
|||||||
Subject=['spam'],
|
Subject=['spam'],
|
||||||
References=['<' + message.get_message_id() + '>']),
|
References=['<' + message.get_message_id() + '>']),
|
||||||
bodytext='spam',
|
bodytext='spam',
|
||||||
tags=['spam'])
|
tags=['spam'],
|
||||||
|
account=settings.account_matching_address('felix.vanderjeugt@ugent.be'))
|
||||||
envelope.attach(message.get_filename())
|
envelope.attach(message.get_filename())
|
||||||
ui.buffer_open(EnvelopeBuffer(ui, envelope))
|
ui.buffer_open(EnvelopeBuffer(ui, envelope))
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# EASY-INSTALL-ENTRY-SCRIPT: 'alot==0.8.1','console_scripts','alot'
|
# EASY-INSTALL-ENTRY-SCRIPT: 'alot==0.9','console_scripts','alot'
|
||||||
__requires__ = 'alot==0.8.1'
|
__requires__ = 'alot==0.9'
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from pkg_resources import load_entry_point
|
from pkg_resources import load_entry_point
|
||||||
@ -8,5 +8,5 @@ from pkg_resources import load_entry_point
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||||
sys.exit(
|
sys.exit(
|
||||||
load_entry_point('alot==0.8.1', 'console_scripts', 'alot')()
|
load_entry_point('alot==0.9', 'console_scripts', 'alot')()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user