diff options
Diffstat (limited to 'alot')
-rw-r--r-- | alot/command.py | 7 | ||||
-rw-r--r-- | alot/helper.py | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/alot/command.py b/alot/command.py index 2b6bc30a..86d24db2 100644 --- a/alot/command.py +++ b/alot/command.py @@ -28,11 +28,7 @@ import mimetypes from email.parser import Parser from email import Charset from email.header import Header -from email import encoders from email.message import Message -from email.mime.audio import MIMEAudio -from email.mime.base import MIMEBase -from email.mime.image import MIMEImage from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import urwid @@ -845,7 +841,8 @@ class EnvelopeSendCommand(Command): name = None helper.attach(sig, mail, filename=name) else: - ui.notify('could not locate signature: %s' % sig, priority='error') + ui.notify('could not locate signature: %s' % sig, + priority='error') if not ui.choice('send without signature') == 'yes': return diff --git a/alot/helper.py b/alot/helper.py index 6aaaf917..eb0d4978 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -87,7 +87,7 @@ def attach(path, mail, filename=None): part.set_payload(fp.read()) fp.close() # Encode the payload using Base64 - encoders.encode_base64(part) + email.encoders.encode_base64(part) # Set the filename parameter if not filename: filename = os.path.basename(path) |