Did I find the right examples for you? yes no

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)
sync mode 

src/g/m/gmvault-HEAD/src/gmv/gmv_cmd.py   gmvault(Download)
 
            #choose full sync. Ignore the request
            syncer.sync({ 'mode': 'full', 'type': 'imap', 'req': 'ALL' } , compress_on_disk = args['compression'], \
                        db_cleaning = args['db-cleaning'], ownership_checking = args['ownership_control'],\
                        restart = args['restart'], emails_only = args['emails_only'], chats_only = args['chats_only'])
 
        elif args.get('type', '') == 'auto':
 
            #choose auto sync. imap request = ALL and restart = True
            syncer.sync({ 'mode': 'auto', 'type': 'imap', 'req': 'ALL' } , compress_on_disk = args['compression'], \
                      'mode' : 'quick'}
 
            syncer.sync( req, \
                         compress_on_disk = args['compression'], \
                         db_cleaning = args['db-cleaning'], \
                         % (args['request']['type'], args['request']['req']))
 
            syncer.sync(args['request'], compress_on_disk = args['compression'], db_cleaning = args['db-cleaning'], \
                        ownership_checking = args['ownership_control'], restart = args['restart'], \
                        emails_only = args['emails_only'], chats_only = args['chats_only'])

src/g/m/gmvault-1.8.1-beta/src/gmv/gmv_cmd.py   gmvault(Download)
 
            #choose full sync. Ignore the request
            syncer.sync({ 'mode': 'full', 'type': 'imap', 'req': 'ALL' } , compress_on_disk = args['compression'], \
                        db_cleaning = args['db-cleaning'], ownership_checking = args['ownership_control'],\
                        restart = args['restart'], emails_only = args['emails_only'], chats_only = args['chats_only'])
 
        elif args.get('type', '') == 'auto':
 
            #choose auto sync. imap request = ALL and restart = True
            syncer.sync({ 'mode': 'auto', 'type': 'imap', 'req': 'ALL' } , compress_on_disk = args['compression'], \
                      'mode' : 'quick'}
 
            syncer.sync( req, \
                         compress_on_disk = args['compression'], \
                         db_cleaning = args['db-cleaning'], \
                         % (args['request']['type'], args['request']['req']))
 
            syncer.sync(args['request'], compress_on_disk = args['compression'], db_cleaning = args['db-cleaning'], \
                        ownership_checking = args['ownership_control'], restart = args['restart'], \
                        emails_only = args['emails_only'], chats_only = args['chats_only'])

src/g/m/gmvault-HEAD/src/gmvault_tests.py   gmvault(Download)
        syncer = gmvault.GMVaulter('/tmp/gmail_bk', 'imap.gmail.com', 993, self.login, self.passwd)
 
        syncer.sync(imap_req = "Since 1-Nov-2011 Before 4-Nov-2011")
 
        storage_dir = "%s/%s" % ('/tmp/gmail_bk/db', '2011-11')
        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)
 
        self.assertFalse(os.path.exists('%s/2384403887202624608.eml.gz' % (storage_dir)))
        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)
 
        # check that the email can be read

src/g/m/gmvault-HEAD/src/validation_tests.py   gmvault(Download)
        #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)
                                     read_only_access = False)
 
        backuper.sync({ 'mode': 'full', 'type': 'imap', 'req': 'ALL' })
 
        #check that we have x emails in the database