summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py44
1 files changed, 23 insertions, 21 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 0ff38b55..79e63167 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -2,39 +2,41 @@
# Copyright © 2018 Dylan Baker
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
+
import argparse
import asyncio
+import email
+import email.policy
+from email.utils import getaddresses, parseaddr
+from email.message import Message
import logging
import mailcap
import os
import subprocess
import tempfile
-import email
-import email.policy
-from email.utils import getaddresses, parseaddr
-from email.message import Message
import urwid
-from urwid.util import detected_encoding
+from urwid.util import detected_encoding
from io import BytesIO
-from . import Command, registerCommand
-from .globals import ComposeCommand
-from .globals import MoveCommand
-from .globals import CommandCanceled
-from .common import RetagPromptCommand
-from .envelope import SendCommand
-from ..completion.contacts import ContactsCompleter
-from ..completion.path import PathCompleter
-from ..mail.attachment import Attachment
-from ..mail.envelope import Envelope
-from ..db.errors import DatabaseROError
-from ..settings.const import settings
-from ..helper import formataddr
-from ..helper import split_commandstring
-from ..utils import argparse as cargparse
-from ..utils.mailcap import MailcapHandler
+from . import Command, registerCommand
+from .common import RetagPromptCommand
+from .envelope import SendCommand
+from .globals import ComposeCommand
+from .globals import MoveCommand
+from .globals import CommandCanceled
+
+from ..completion.contacts import ContactsCompleter
+from ..completion.path import PathCompleter
+from ..db.errors import DatabaseROError
+from ..helper import formataddr
+from ..helper import split_commandstring
+from ..mail.attachment import Attachment
+from ..mail.envelope import Envelope
+from ..settings.const import settings
+from ..utils import argparse as cargparse
+from ..utils.mailcap import MailcapHandler
MODE = 'thread'