From 08597ae2e0d2f348bea4e235d1cadbebf4bd4568 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 3 Nov 2016 14:20:18 +0100 Subject: [PATCH] [FIX] don't open a connection if there are no active folders fixes #247 --- fetchmail_attach_from_folder/model/fetchmail_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fetchmail_attach_from_folder/model/fetchmail_server.py b/fetchmail_attach_from_folder/model/fetchmail_server.py index 53c9c9821..5e16dcfca 100644 --- a/fetchmail_attach_from_folder/model/fetchmail_server.py +++ b/fetchmail_attach_from_folder/model/fetchmail_server.py @@ -60,6 +60,8 @@ class fetchmail_server(models.Model): for this in self.browse(cr, uid, ids, context): if this.object_id: check_original.append(this.id) + if not this.folder_ids.filtered('active'): + continue context.update( {