kbr*_*and 6 thunderbird imap ubuntu-12.04
我所在的机构最近重新调整了我们的电子邮件帐户。我被迫将多年精心策划的电子邮件(= 比 3 岁生日派对更混乱)从 IMAP account_old 转移到 IMAP account_new,据我所知,它们仅在服务器名称上有所不同。
作为 IMAP,除了邮件服务器之外,我的所有邮件都保存在本地,所以我认为 Thunderbird 可能允许我创建 IMAP account_new,然后将我的~/.thunderbird配置文件的内容推送到 account_new IMAP 服务器上。另请注意,IMAP account_old 现在处于脱机状态。
我的谷歌搜索在这种方法上没有返回任何内容,相反,用户似乎必须费力地复制邮件(通过右键单击文件夹 >复制到> relative/thunderbird/path),一个文件夹一个文件夹,从一个帐户到另一个帐户。我一直这样做,直到我发现,在某个时候,附件不再被正确复制(但在我开始这个过程时是这样)。具体来说,附件文件容器被复制,但内容似乎不存在,因为尝试打开它时返回错误*。在单个邮件项目上使用Move To会发生同样的问题。现在我想知道 DavMail(对于我使用的 Exchange 帐户)是否会干扰使用这种方法复制附件。
*此附件似乎为空。请与发送此邮件的人核实。公司防火墙或防病毒程序通常会破坏附件。
同样,我想知道是否有一种更健壮且劳动强度更低的方式将帐户的整个本地内容上传到 IMAP 服务器,并具有完整的树结构和元数据(转发、回复、标签等) ? 我在 Ubuntu 12.04、64 位、DavMail 4.1.0 上使用 Thunderbird v17.0。
编辑:我认为imapsync应该可以完成这项工作。对此方法有何评论,即元数据和附件是否忠实同步?
另一种方法是使用mbsync从iSync的项目。以下是将邮件从一个 IMAP 服务器直接同步到另一个的示例配置:
# The IMAP server you wish to copy mails from.
IMAPAccount imap-src-account
Host imap.host.ac.uk
User student0192
# Pass "xxxxx" # if you don't mind storing it in the file; otherwise will prompt
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
# The IMAP server you wish to copy mails to.
IMAPAccount imap-dest-account
Host zimbra.corporate.com
User worker@corporate.com
# Pass "xxxxx" # if you don't mind storing it in the file; otherwise will prompt
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
# Link IMAP server to remote used below
IMAPStore imap-src
Account imap-src-account
IMAPStore imap-dest
Account imap-dest-account
# ensures that dates of messages will be set correctly
CopyArrivalDate yes
Channel transfer
Master :imap-src:
Slave :imap-dest:
# Transfer all folders
Patterns *
Create Slave
Sync Pull
# important otherwise you will get 'Error: store ... does not support in-box sync state'
SyncState ~/.mail/imap-transfer
Run Code Online (Sandbox Code Playgroud)
然后,您可以运行mbsync -l transfer以列出将同步的邮件文件夹。
要实际运行传输,请运行mbsync transfer。这样做的好处是您可以定期运行它,它会进行有效的同步。
补充说明:
PassCmd以使用不同的方法获取密码(例如从令牌环)。Slave ":imap-dest:parent-folder/"在Channel配置中说来指定这一点。| 归档时间: |
|
| 查看次数: |
5688 次 |
| 最近记录: |