From c3f487002e33b4b4cb65a04f9c192c4e59ec4908 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 20 Jan 2015 01:20:42 -0400 Subject: bug: fix empty definition; remove threading use this fixes a bug by which incoming service was not deleting the message from incoming after correclty saving all the message subparts into soledad. --- src/leap/mail/utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/leap/mail/utils.py') diff --git a/src/leap/mail/utils.py b/src/leap/mail/utils.py index 457097b..8e51024 100644 --- a/src/leap/mail/utils.py +++ b/src/leap/mail/utils.py @@ -45,9 +45,12 @@ def first(things): def empty(thing): """ Return True if a thing is None or its length is zero. + If thing is a number (int, float, long), return False. """ if thing is None: return True + if isinstance(thing, (int, float, long)): + return False if isinstance(thing, SoledadDocument): thing = thing.content try: -- cgit v1.2.3