From 6baf5b784f6f9c8548f93f4c7e59442699184827 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Tue, 2 Apr 2013 09:17:42 +0100 Subject: fix 'attach' pseudo header this feature was not yet changed after an Envelope rewrite and was still based on Envelope._headers[foo] being a str and not a list of str. fixes #587 --- alot/db/envelope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/db') diff --git a/alot/db/envelope.py b/alot/db/envelope.py index f61e257e..f0c94de0 100644 --- a/alot/db/envelope.py +++ b/alot/db/envelope.py @@ -324,7 +324,7 @@ class Envelope(object): # interpret 'Attach' pseudo header if 'Attach' in self: to_attach = [] - for line in self['Attach']: + for line in self.get_all('Attach'): gpath = os.path.expanduser(line.strip()) to_attach += filter(os.path.isfile, glob.glob(gpath)) logging.debug('Attaching: %s' % to_attach) -- cgit v1.2.3