1

我一直在尝试设置offlineimap以将邮件从 gmail 同步到我的 mac 机器上的本地文件夹。

我当前设置的问题是,offlineimap 将开始同步来自两个帐户的邮件,我可以看到如下行 -

Copy message 3 (3 of 10966) repo1_remote:[Gmail]/Important -> repo1_local

但是,在 20-30 左右之后copy message,这些线路就停止了。Offlineimap 仍然连接,它会在 10 分钟后刷新并再次同步,但是,我再也看不到copy messagerepos 中的任何行,它就停止了。我可以在 mutt 中看到这些新的 20-30 条新消息,但不能更多。杀死并重新启动 offlineimap 会再次复制 20-30 条新消息并再次停止。我不知道出了什么问题。我想它应该在本地复制所有消息。这是我的offlineimaprc。我已经正确设置了python文件。

[general]
metadata = ~/.offlineimap
accounts = repo1, repo2
maxsyncaccounts = 10
#ui = blinkenlights
ui = ttyui
pythonfile = ~/Development/OfflineIMAP/mail/offlineimap.py
#socktimeout = 60

[mbnames]

[Account repo2]

localrepository = repo2_local
remoterepository = repo2_remote
autorefresh = 10
status_backend = sqlite
synclabels = yes

[Account repo1]

localrepository = repo1_local
remoterepository = repo1_remote
autorefresh = 10
status_backend = sqlite
synclabels = yes

[Repository repo2_local]

type = GmailMaildir
nametrans = get_remote_name
localfolders = ~/Development/OfflineIMAP/mail/repo2
sep = /
restoreatime = yes

[Repository repo1_local]

type = GmailMaildir
nametrans = get_remote_name
localfolders = ~/Development/OfflineIMAP/mail/repo1
sep = /
restoreatime = yes

[Repository repo2_remote]
type = Gmail
folderfilter = is_included
nametrans = get_local_name
cert_fingerprint = 3ffdb8519c1c8242ce8387d3d9fccc208a776b4a
remoteuser = asd@gmail.com
remotepasseval = get_password('asd')
usecompression = yes
maxconnections = 3

[Repository repo1_remote]
type = Gmail
folderfilter = is_included
nametrans = get_local_name
cert_fingerprint = 3ffdb8519c1c8242ce8387d3d9fccc208a776b4a
remoteuser = qwe@gmail.com
remotepasseval = get_password('qwe')
usecompression = yes
maxconnections = 3

我想知道是什么阻止了offlineimap 复制更多消息以及我应该在配置中进行哪些更改以使其正常工作。

4

1 回答 1

1

I've just recently ran into the same problem with gmail. In my case disabling compression and setting connections limit to 1 resolved the issue (didn't have time to investigate fully). Have you tried doing this?

于 2015-12-21T21:55:12.093 回答