我正在嘗試讓 Offlineimap 與我的 Gmail 帳戶同步(使用反向 nametrans)。以下是我的offlineimaprc的相關部分:
[Repository gm_local]
nametrans = lambda folder: re.sub('spam', '[Google Mail].Spam',
re.sub('drafts', '[Google Mail].Drafts',
re.sub('sent', '[Google Mail].Sent Mail',
re.sub('bin', '[Google Mail].Bin',
re.sub('archive', '[Google Mail].All*', folder)))))
[Repository gm_remote]
nametrans = lambda folder: re.sub('.*Spam$', 'spam',
re.sub('.*Drafts$', 'drafts',
re.sub('.*Sent Mail$', 'sent',
re.sub('.*Bin$', 'bin',
re.sub('.*All$', 'archive', folder)))))
除了我無法同步的頑固「所有郵件」之外,所有資料夾都已正確同步。如何解決「所有郵件」同步問題?
答案1
確保您確實訂閱了缺少同步的所有資料夾。
就我而言,我忘記檢查我是否確實訂閱了 Gmail 本身中的「所有郵件」資料夾。