如何备份完整的IMAP帐户?

I have a large IMAP email account which contains many emails in a rich structure of directories. How to back up the whole IMAP account to my local computer? The requirements:

我有一个很大的IMAP 电子邮件帐户,其中包含许多具有丰富目录结构的电子邮件。 如何将整个IMAP帐户备份到我的本地计算机? 要求:

  1. Automatically downloading these files. There are many directories, and copying-pasting emails will take too much time.

    自动下载这些文件 。 目录很多,复制粘贴电子邮件将花费太多时间。

  2. Keep the directory structures which are used to organize these emails.

    保留用于组织这些电子邮件的目录结构。

I use offlineimap to synchronize the emails when the iMail at HKUST change to @Connect.

当HKUST的iMail更改为@Connect时,我使用offlineimap同步电子邮件。

On Fedora, installing offlineimap by # yum install offlineimap.

在Fedora上,通过offlineimap # yum install offlineimap

The configuration in my ~/.offlineimaprc:

我的~/.offlineimaprc的配置:

[general]
accounts = USTiMail

[Account USTiMail]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/Mail/USTiMail

[Repository Remote]
type = IMAP
readonly = true
remotehost = imap.ust.hk
remoteuser = zma

To start the backing up, simply run offlineimap and it will ask for the password.

开始备份,只需运行offlineimap ,它将要求输入密码。

The readonly = true in the Remote repository part is to make sure changes at local by accident are not synced to the remote IMAP side.

远程存储库部分中的readonly = true是确保偶然在本地进行的更改不会同步到远程IMAP端。

After the emails are sync’ed from the IMAP server, archive or compress as you need.

从IMAP服务器同步电子邮件后,根据需要存档或压缩。

The emails are organized in the Maildir format. Many tools can be used to view the emails. I use mutt by

电子邮件以Maildir格式组织。 许多工具可用于查看电子邮件。 我用mutt

mutt -f /path/to/a/mail/dir/
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/how-to-back-up-a-complete-imap-account/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值