将邮件从一个帐户迁移到另一个帐户:imapsync 还是offlineimap?
我最初提出了与超级用户密切相关的原始问题。 com,但我觉得这可能会更快一些,因为我想要一些编程和自动化的东西,使用那里没有人熟悉的工具。以下是场景:
两个帐户:
- 帐户 A(原始工作帐户 配额)
- 帐户B(新的备份电子邮件 帐户)
流程:
- 在帐户B 中创建文件夹(例如“2010 电子邮件备份”文件夹)。
- 将帐户 A 中嵌套的所有文件夹迁移到帐户 B 的新文件夹中(例如“2010 电子邮件备份”->“收件箱”、“已发送”、“垃圾箱”等)。
我希望能够每隔几个月或每年执行一次此操作,并使用 imapsync 或 Offlineimap 编写脚本来满足我的需求。那么:如果可能的话,使用这些工具会在检查帐户 A 并清除帐户 B 时导致问题,因为原始文件夹不同吗?我不确定它们有多具体,所以我想要一些来自现场的报告。如果有人有使用这些工具的经验,请告诉我。我很想在达到配额之前弄清楚这一点。
I had originally asked the original, closely-related question on superuser.com, but I feel this might be a little more stackoverflow speed since I want something programmatic and automated, using tools no one there knows well. Here is the scenario:
Two accounts:
- Account A (original work account with
quota) - Account B (new backup email
account)
Process:
- Create folder in Account B (e.g. "2010 Email Backup" folder).
- Migrate all folders in Account A nested into new folder on Account B (e.g. "2010 Email Backup" -> "Inbox", "Sent", "Trash", etc.).
I want to be able to do this every couple of months or every year, and script it for my needs with either imapsync or offlineimap. So: will using these tools, if this is possible, cause an issue when it checks Account A and clears out Account B because the original folders are different? I am not sure how specific they are, so I wanted some reports from the field. If anyone has experience with these tools, PLEASE let me know. I would love to figure this out before I hit a quota.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好提示,从未意识到您可以使用 --dry 或使用
--regextrans2
选择另一个文件夹可以使用:
--prefix1 INBOX.Braunschweig
您可能还想使用
--subscribe
确保您没有任何未订阅的文件夹,否则可能会被错过。我们实际上也写了一个cPanel IMAPSYNC。
Good tip, never realized you could use --dry or pick another folder with
--regextrans2
Could of been possible with:
--prefix1 INBOX.Braunschweig
You might also want to use
--subscribe
to make sure that you don't have any folders your not subscribed to that could otherwise get missed.We actually wrote a cPanel IMAPSYNC too.
来自
imapsync
常见问题解答:问:我已经从布伦瑞克搬到了格拉茨,所以我想要我的
整个不伦瑞克邮件被分类到我的文件夹
INBOX.Braunschweig
中新邮件帐户。
R。
1) 第一次尝试(安全模式):
2) 查看输出是否显示了您想要 imapsync 执行的所有操作,
--dry
选项是安全的,没有任何实际作用。3) 删除
--dry
。检查目标端的 imap 文件夹树。
4) 删除
--justfolders
。From the
imapsync
FAQ:Q. I have moved from Braunschweig to Graz, so I would like to have my
whole Braunschweig mail sorted into a folder
INBOX.Braunschweig
of mynew mail account.
R.
1) First try (safe mode):
2) See if the output says everything you want
imapsync
to do,--dry
option is safe and does nothing real.3) Remove
--dry
.Check the imap folder tree on the target side.
4) Remove
--justfolders
.