mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-23 07:31:36 +00:00
4.12, delete message fix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user