From 586c5e58d3c0bd4290b6dc05a7ed078050c98c15 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 28 Feb 2014 13:07:37 +0100 Subject: [PATCH] [FIX] missing subject in fetched mail causes exception --- fetchmail_attach_from_folder/model/fetchmail_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetchmail_attach_from_folder/model/fetchmail_server.py b/fetchmail_attach_from_folder/model/fetchmail_server.py index d043f9bc6..731f1b893 100644 --- a/fetchmail_attach_from_folder/model/fetchmail_server.py +++ b/fetchmail_attach_from_folder/model/fetchmail_server.py @@ -209,7 +209,7 @@ class fetchmail_server(Model): 'res_id': object_id, 'body_text': mail_message.get('body'), 'body_html': mail_message.get('body_html'), - 'subject': mail_message.get('subject'), + 'subject': mail_message.get('subject', ''), 'email_to': mail_message.get('to'), 'email_from': mail_message.get('from'), 'email_cc': mail_message.get('cc'),