diff options
author | Klaus Fl <kfleerko@thoughtworks.com> | 2015-08-07 17:19:25 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:33 +0200 |
commit | 319e5e2ddd20444bb30f294a2fd08854dfaae494 (patch) | |
tree | 1d341aca9bb601170414275f0cc90b3e19b22359 /service/pixelated/adapter/model | |
parent | 8585a186716a4f45132e3c9eea90a792ca76c2a2 (diff) |
Make indexing recepients work again by fixing serialization bug
Diffstat (limited to 'service/pixelated/adapter/model')
-rw-r--r-- | service/pixelated/adapter/model/mail.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index 61e56f33..388263ca 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -95,7 +95,10 @@ class Mail(object): return self._mime mime = MIMEMultipart() for key, value in self.headers.items(): - mime[str(key)] = str(value) + if isinstance(value, list): + mime[str(key)] = ', '.join(value) + else: + mime[str(key)] = str(value) try: body_to_use = self.body |