This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 months ago.
The community reviewed whether to reopen this question 3 months ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
如果需要将maildir账户转换为邮箱账户而不需要设置mailservers,可以使用python的邮箱库。如果要转换单个 maildir 文件夹,可以使用找到的这个小(10 行+注释)python 脚本 此处。如果有子文件夹,则需要探索子文件夹结构,这两种格式之间是不同的。这给出了以下脚本:
If one needs to convert a maildir account into a mailbox account without setting mailservers, one can use the mailbox library of python. If one has a single maildir folder to convert, one can use this small (10 lines+comments) python script found here. If one has subfolder, one needs to explore the subfolder structure, which is different between the two formats. This gives the following script :
如果您可以通过 imap 访问两台服务器(或者可以临时安排它),您可能需要考虑使用 imapsync 工具,例如:
http://freshmeat.net/projects/imapsync/
如果这不起作用,您应该能够忽略 dovecot 文件,但要注意,您可能会丢失信息,例如哪些消息是读取消息上设置的任何标志。 (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/
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.)
您可以使用
mutt
来执行此操作。以下命令会将 Maildir 文件夹转换为 mbox 文件:
You can use
mutt
to do this.The following command will convert a Maildir folder to an mbox file:
如果您有 Maildir 文件数据并且想要将 Maildir 文件导入到 MBOX 帐户,那么您可以借助任何能够将 Maildir 文件导入到 MBOX 帐户的第三方工具的帮助。但在我看来,您应该使用此 Maildir 到 MBOX 转换器工具的免费试用版,只需简单的点击即可将单个和多个 Maildir 文件导入到 MBOX 帐户。
访问:https://www.spikevare.com/maildir/
If you have Maildir file data and you want to Import your Maildir file to MBOX Account then you can take the help of any third-party tool that has the ability to Import Maildir file to an MBOX Account. but In my opinion, you should use the free trial version of this Maildir to MBOX Converter tool that Imports single and multiple Maildir files to MBOX Account in just simple and easy clicks.
Visit at : https://www.spikevare.com/maildir/