书接上文,为了能够将邮件账户以文件格式导出到本地文件,作为备份,我开发了工具 imapdump
代码地址
开源地址:https://github.com/guoyk93/imapdump
下载地址:https://github.com/guoyk93/imapdump/releases
使用方法
配置文件
首先准备一个 YAML 格式的配置文件,名叫 config.yaml
# 要导出的目录
dir: dump
# 账户信息
accounts:
# 邮件名,为了创建不同的子目录
- name: username@mydomain.com
# 主机地址,必须是 TLS 加密的 IMAP 协议地址
host