本文整理汇总了Python中inbox.mailsync.backends.imap.generic.FolderSyncEngine.initial_sync_impl方法的典型用法代码示例。如果您正苦于以下问题:Python FolderSyncEngine.initial_sync_impl方法的具体用法?Python FolderSyncEngine.initial_sync_impl怎么用?Python FolderSyncEngine.initial_sync_impl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类inbox.mailsync.backends.imap.generic.FolderSyncEngine
的用法示例。
在下文中一共展示了FolderSyncEngine.initial_sync_impl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: initial_sync_impl
# 需要导入模块: from inbox.mailsync.backends.imap.generic import FolderSyncEngine [as 别名]
# 或者: from inbox.mailsync.backends.imap.generic.FolderSyncEngine import initial_sync_impl [as 别名]
def initial_sync_impl(self, crispin_client, local_uids,
uid_download_stack):
with mailsync_session_scope() as db_session:
saved_folder_info = common.get_folder_info(self.account_id,
db_session,
self.folder_name)
if saved_folder_info is None:
assert (crispin_client.selected_uidvalidity is not None and
crispin_client.selected_highestmodseq is not None)
common.update_folder_info(
crispin_client.account_id, db_session, self.folder_name,
crispin_client.selected_uidvalidity,
crispin_client.selected_highestmodseq)
self.__check_flags(crispin_client, db_session, local_uids)
return FolderSyncEngine.initial_sync_impl(
self, crispin_client, local_uids, uid_download_stack,
spawn_flags_refresh_poller=False)