Did I find the right examples for you? yes no

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)
Main object operating over gmail

src/g/m/gmvault-HEAD/src/gmv/gmv_cmd.py   gmvault(Download)
        LOG.critical("Connect to Gmail server.\n")
        # Create a gmvault releaving read_only_access
        restorer = gmvault.GMVaulter(args['db-dir'], args['host'], args['port'], \
                                       args['email'], credential, read_only_access = False)
 
 
        # handle credential in all levels
        syncer = gmvault.GMVaulter(args['db-dir'], args['host'], args['port'], \
                                       args['email'], credential, read_only_access = True, use_encryption = args['encrypt'])
 
 
        # handle credential in all levels
        checker = gmvault.GMVaulter(args['db-dir'], args['host'], args['port'], \
                                   args['email'], credential, read_only_access = True)
 

src/g/m/gmvault-1.8.1-beta/src/gmv/gmv_cmd.py   gmvault(Download)
        LOG.critical("Connect to Gmail server.\n")
        # Create a gmvault releaving read_only_access
        restorer = gmvault.GMVaulter(args['db-dir'], args['host'], args['port'], \
                                       args['email'], credential, read_only_access = False)
 
 
        # handle credential in all levels
        syncer = gmvault.GMVaulter(args['db-dir'], args['host'], args['port'], \
                                       args['email'], credential, read_only_access = True, use_encryption = args['encrypt'])
 
 
        # handle credential in all levels
        checker = gmvault.GMVaulter(args['db-dir'], args['host'], args['port'], \
                                   args['email'], credential, read_only_access = True)
 

src/g/m/gmvault-HEAD/src/gmvault_tests.py   gmvault(Download)
    def ztest_few_days_syncer(self):
        """
           Test with the Syncer object
        """
        syncer = gmvault.GMVaulter('/tmp/gmail_bk', 'imap.gmail.com', 993, self.login, self.passwd)
        shutil.copyfile('../etc/tests/test_few_days_syncer/2384403887202624608.meta','%s/2384403887202624608.meta' % (storage_dir))
 
        syncer = gmvault.GMVaulter('/tmp/gmail_bk', 'imap.gmail.com', 993, self.login, self.passwd)
 
        syncer.sync(imap_req = "Since 1-Nov-2011 Before 2-Nov-2011", db_cleaning = True)
 
        use_encryption = True
        syncer = gmvault.GMVaulter(db_dir, 'imap.gmail.com', 993, self.login, credential, read_only_access = True, use_encryption = use_encryption)
 
        syncer.sync(imap_req = search_req)
            gm_id = gstorer.bury_email(res[the_id], compress = True)
 
            syncer = gmvault.GMVaulter(db_dir, 'imap.gmail.com', 993, self.gmvault_login, gs_credential)
 
            syncer.restore()
        db_dir = '/tmp/gmail_bk'
        credential = { 'type' : 'passwd', 'value': self.passwd}
        syncer = gmvault.GMVaulter(db_dir, 'imap.gmail.com', 993, self.login, credential, 'verySecRetKeY')
 
        syncer._create_update_sync([142221L], compress = True)

src/g/m/gmvault-HEAD/src/validation_tests.py   gmvault(Download)
        search_req    = { 'type' : 'imap', 'req': "Since 1-Nov-2011 Before 3-Nov-2011"}
 
        syncer = gmvault.GMVaulter(db_dir, 'imap.gmail.com', 993, self.login, credential, read_only_access = False, use_encryption = True)
 
        #syncer.sync(imap_req = "Since 1-Nov-2011 Before 4-Nov-2011")
        # Nov-2007 BigDataset
        syncer.sync(imap_req = search_req)
 
        restorer = gmvault.GMVaulter(db_dir, 'imap.gmail.com', 993, self.gmvault_login, gs_credential, read_only_access = False)

src/g/m/gmvault-HEAD/src/gmvault_essential_tests.py   gmvault(Download)
        #test_db_dir = "/Users/gaubert/Dev/projects/gmvault-develop/src/test-db"
 
        restorer = gmvault.GMVaulter(test_db_dir, 'imap.gmail.com', 993, \
                                     self.gsync_login, gsync_credential, \
                                     read_only_access = False)
        gmvault_test_db_dir = "/tmp/backup-restore"
 
        backuper = gmvault.GMVaulter(gmvault_test_db_dir, 'imap.gmail.com', 993, \
                                     self.gmvault_test_login, gmvault_test_credential, \
                                     read_only_access = False)
 
        backuper.sync({ 'mode': 'full', 'type': 'imap', 'req': 'ALL' })
 
        #check that we have x emails in the database
        restorer = gmvault.GMVaulter(gmvault_test_db_dir, 'imap.gmail.com', 993, \
 
        gmv_dir_a = "/tmp/a-db"
        gmv_a = gmvault.GMVaulter(gmv_dir_a, 'imap.gmail.com', 993, self.gsync_login, gsync_credential, read_only_access = True)
 
        test_utils.find_identical_emails(gmv_a)
        gmv_dir_b = "/tmp/b-db"
 
        gmv_a = gmvault.GMVaulter(gmv_dir_a, 'imap.gmail.com', 993, self.gsync_login, gsync_credential, read_only_access = True)
 
        #gmv_a = gmvault.GMVaulter(gmv_dir_a, 'imap.gmail.com', 993, self.gmvault_test_login, gmvault_test_credential, read_only_access = False)

src/g/m/gmvault-HEAD/src/gmv/validation_tests.py   gmvault(Download)
        test_db_dir = "/tmp/gmvault-tests"
 
        restorer = gmvault.GMVaulter(test_db_dir, 'imap.gmail.com', 993, self.test_login, credential, \
                                     read_only_access = False)
 

src/g/m/gmvault-1.8.1-beta/src/gmv/validation_tests.py   gmvault(Download)
        test_db_dir = "/tmp/gmvault-tests"
 
        restorer = gmvault.GMVaulter(test_db_dir, 'imap.gmail.com', 993, self.test_login, credential, \
                                     read_only_access = False)
 

src/g/m/gmvault-HEAD/src/gmv_cmd_tests.py   gmvault(Download)
        credential = credential_utils.CredentialHelper.get_credential(args)
 
        syncer = gmvault.GMVaulter(args['db-dir'], args['host'], args['port'], \
                                       args['email'], credential)