summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py4
1 files changed, 2 insertions, 2 deletions
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):