diff options
author | Kali Kaneko <kali@leap.se> | 2015-01-20 01:20:42 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-01-21 15:08:05 -0400 |
commit | b8a2b00b379588de262ab30ccddba4e6d89e1a36 (patch) | |
tree | 306858141a63ad64214d193fe1b29725690bfc0e /src/leap/mail/utils.py | |
parent | aeccc5f0c8c5b9da38f24dae0bb0cebe8a64c14d (diff) |
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.
Diffstat (limited to 'src/leap/mail/utils.py')
-rw-r--r-- | src/leap/mail/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |