将Maildir转换为mbox [英] Convert Maildir to mbox

查看:252
本文介绍了将Maildir转换为mbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更改主机,我需要将我的旧服务器上的maildir帐户转换到我的新服务器上的mbox。

Im changing hosts and i need to convert my maildir accounts on my old server to mbox on my new server.

有什么想法可以做到这一点?

Any ideas on the best way to do this?

我发现这个:

在新的/ * cur / *; do formail<$我>> .. / mbox;完成

for i in new/* cur/*;do formail <"$i" >> ../mbox;done

但我真的不明白它。我有一个基本的linux知识,我通过ssh访问我的服务器。

But i dont really understand it. I have a basic knowledge of linux and I have root access to my server via ssh.

大部分Maildir文件夹都有以下内容:

most of the Maildir folder have the following contents:

cur

new

tmp

dovecot.index.log

dovecot-uidlist

dovecot.index

dovecot.index.log.2

dovecot.index.cache

dovecot关键字

订阅

cur
new
tmp
dovecot.index.log
dovecot-uidlist
dovecot.index
dovecot.index.log.2
dovecot.index.cache
dovecot-keywords
subscriptions

我需要所有这些,或者我可以忽略dovecot文件?

Do i need all of that or can i ignore the dovecot files?

任何建议将不胜感激。

C

推荐答案

如果您可以通过imap访问这两个服务器(或可以临时安排),那么您可能需要考虑使用imapsync工具,例如:

If you have access to both servers via imap (or can temporarily arrange it), you might want to consider using an imapsync tool, eg:

http://freshmeat.net/projects/imapsync/

如果这样不行,你应该可以忽略dovecot文件,但要小心你可能会像失去其信息读取和任何标志上的信息设置信息。 (imapsync方法将保留所有这些东西。)

If that won't work, you should be able to ignore the dovecot files, but beware that you'll likely lose information like which messages are read and any flags set on the messages. (The imapsync method would preserve all those things.)

这篇关于将Maildir转换为mbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆