the problem are the internationalization
I print the start and end: u'21-abr-2002', u'20-abr-2010'
april 21 in spanish
I change:
ret, result = self.gmail.search(None, '(SINCE "%s") (BEFORE "%s")' % (start, end)) to ret, result = self.gmail.search(None, '(SINCE "%s") (BEFORE "%s")' % (u'21-apr-2002', u'20-apr-2010'))
and run ok, then the problem are in my case the language date of start and end.
the problem are the internationaliz ation
I print the start and end:
u'21-abr-2002', u'20-abr-2010'
april 21 in spanish
I change:
ret, result = self.gmail. search( None, '(SINCE "%s") (BEFORE "%s")' % (start, end)) search( None, '(SINCE "%s") (BEFORE "%s")' % (u'21-apr-2002', u'20-apr-2010'))
to
ret, result = self.gmail.
and run ok, then the problem are in my case the language date of start and end.