diff options
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/globals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 906117a6..293d4925 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -844,7 +844,7 @@ class ComposeCommand(Command): self.envelope.attach(sig, filename=name) logging.debug('attached') else: - with open(sig) as f: + with open(sig, 'rb') as f: sigcontent = f.read() mimetype = helper.guess_mimetype(sigcontent) if mimetype.startswith('text'): |