From 9398560306f5609bcf1d3fdda6511cdb3b67d3f3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 24 Nov 2021 15:36:28 +0100 Subject: helper: move guess_mimetype into its own file --- alot/mail/envelope.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alot/mail/envelope.py') 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 = [] -- cgit v1.2.3