diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-07-08 12:05:40 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-07-12 14:20:12 +0100 |
commit | dec79d0efac45e82a230d78693114b26e9070347 (patch) | |
tree | 00e636fafcfc63b9afce7ed435cb05b792fe6284 /alot/commands/globals.py | |
parent | ba5e56db7d50004e586aa18ffe6a7950c92c1a54 (diff) |
ComposeCommand: open signature as binary
Otherwise it will be read as a regular python string and be interpreted
as octet-stream.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'alot/commands/globals.py')
-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'): |