From 309fb25e9b089618c37f1a741fa6009cce54ac9e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 30 Jan 2021 16:33:56 +0100 Subject: db/attachment: simplify the Attachment class Make it a plain container around raw data and a few bits of metadata, rather than around a whole MIME part. --- alot/commands/globals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alot/commands/globals.py') diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 65e8973b..6c73e6c9 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -801,7 +801,7 @@ class ComposeCommand(Command): logging.debug('is file') if account.signature_as_attachment: name = account.signature_filename or None - self.envelope.attach(sig, filename=name) + self.envelope.attach_file(sig, filename = name) logging.debug('attached') else: try: @@ -947,7 +947,7 @@ class ComposeCommand(Command): if self.attach: for gpath in self.attach: for a in glob.glob(gpath): - self.envelope.attach(a) + self.envelope.attach_file(a) logging.debug('attaching: %s', a) async def __apply(self, ui): -- cgit v1.2.3