Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Return all attributes associated to each message

src/g/m/gmvault-HEAD/src/gmvault_tests.py   gmvault(Download)
        ids = gimap.search(criteria)
 
        res = gimap.fetch(ids, [gimap.GMAIL_ID])
 
        self.assertEquals(res, {27362: {'X-GM-MSGID': 1147537963432096749L, 'SEQ': 14535}, 27363: {'X-GM-MSGID': 1147537994018957026L, 'SEQ': 14536}})
        self.assertEquals(len(ids), 2)
 
        res = gimap.fetch(ids[0], [gimap.GMAIL_ID, gimap.EMAIL_BODY, gimap.GMAIL_THREAD_ID, gimap.GMAIL_LABELS])
 
        self.assertEquals(res[ids[0]][gimap.GMAIL_ID], 1147537963432096749L)
        the_id = ids[124]
 
        res          = gimap.fetch(the_id, gimap.GET_ALL_INFO)
 
        gm_id = gstorer.bury_email(res[the_id])
        the_id = ids[124]
 
        res          = gimap.fetch(the_id, gimap.GET_ALL_INFO)
 
        gm_id = gstorer.bury_email(res[the_id])
            the_id = ids[index]
 
            res          = gimap.fetch(the_id, gimap.GET_ALL_INFO)
 
            gm_id = gstorer.bury_email(res[the_id])