diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-04-02 09:17:42 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-04-02 09:17:42 +0100 |
commit | 6baf5b784f6f9c8548f93f4c7e59442699184827 (patch) | |
tree | e735c5b2347a16b6de5218fc1b504c77559ef81e /alot/db | |
parent | 5bc50929cebb4854c8eb669b86ca65347aeec56c (diff) |
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
Diffstat (limited to 'alot/db')
-rw-r--r-- | alot/db/envelope.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |