diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-24 15:36:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-11-24 15:36:28 +0100 |
commit | 9398560306f5609bcf1d3fdda6511cdb3b67d3f3 (patch) | |
tree | 3bec6342ab9cdea709f49d87f4de0cf82b90f343 /alot/mail | |
parent | 652f88fa9c6db6c8185bedaf527364c719e5fe72 (diff) |
helper: move guess_mimetype into its own file
Diffstat (limited to 'alot/mail')
-rw-r--r-- | alot/mail/envelope.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/mail/envelope.py b/alot/mail/envelope.py index d3cace18..0a616a57 100644 --- a/alot/mail/envelope.py +++ b/alot/mail/envelope.py @@ -17,10 +17,10 @@ from . import headers as HDR from .attachment import Attachment from .. import __version__ -from .. import helper from .. import crypto from ..settings.const import settings from ..errors import GPGProblem, GPGCode +from ..utils.magic import guess_mimetype charset.add_charset('utf-8', charset.QP, charset.QP, 'utf-8') @@ -239,7 +239,7 @@ class Envelope: with open(path, 'rb') as f: data = f.read() - ctype = helper.guess_mimetype(data) + ctype = guess_mimetype(data) params = [] |