4.12, delete message fix

This commit is contained in:
Jay Lee
2017-02-18 17:20:49 -05:00
parent 3c3b7527a1
commit 58a080fe6b
2 changed files with 3 additions and 3 deletions

View File

@@ -4970,8 +4970,6 @@ def doProcessMessagesOrThreads(users, function, unit=u'messages'):
kwargs = {u'body': {}}
for my_key in body:
kwargs[u'body'][my_key] = labelsToLabelIds(gmail, body[my_key])
if not kwargs[u'body']:
del kwargs[u'body']
i = 0
if unit == u'messages' and function in [u'delete', u'modify']:
batchFunction = u'batch%s' % function.title()
@@ -4990,6 +4988,8 @@ def doProcessMessagesOrThreads(users, function, unit=u'messages'):
processed_messages += len(id_batch)
print u'%s %s of %s messages' % (function, processed_messages, result_count)
continue
if not kwargs[u'body']:
del kwargs[u'body']
for a_unit in listResult:
i += 1
print u' %s %s %s for user %s (%s/%s)' % (function, unit, a_unit[u'id'], user, i, result_count)

View File

@@ -4,7 +4,7 @@ import platform
import re
gam_author = u'Jay Lee <jay0lee@gmail.com>'
gam_version = u'4.11'
gam_version = u'4.12'
gam_license = u'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
GAM_URL = u'http://git.io/gam'