Did I find the right examples for you? yes no

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)
Return all found ids corresponding to the search

src/g/m/gmvault-HEAD/src/gmvault_tests.py   gmvault(Download)
 
        criteria = ['Before 1-Jan-2011']
        ids = gimap.search(criteria)
 
        self.assertEquals(len(ids), 33577)
 
        criteria = ['Before 1-Jan-2011']
        ids = gimap.search(criteria)
 
        self.assertEquals(len(ids), 33577)
        criteria = ['Before 1-Oct-2004']
        #criteria = ['ALL']
        ids = gimap.search(criteria)
 
        res = gimap.fetch(ids, [gimap.GMAIL_ID])
        criteria = ['Before 1-Oct-2004']
        #criteria = ['ALL']
        ids = gimap.search(criteria)
 
        self.assertEquals(len(ids), 2)
        criteria = ['Before 1-Oct-2006']
        #criteria = ['ALL']
        ids = gimap.search(criteria)
 
        the_id = ids[124]