为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

restored imap profile from backup, but sync deletes all the recovered emails

more options

restored imap profile from backup to recover years of email deleted from the server (don't ask) recovered 45000 emails, easy peasy but sync immediately deletes all the recovered emails, even if specifying sync only last week

Not nice! Is starting Thunderbird offline after recovering the profile and copying to local files the only option? Is it really not possible to turn off sync for mails older than x, or apply some intelligent filtering to the synchronization?

restored imap profile from backup to recover years of email deleted from the server (don't ask) recovered 45000 emails, easy peasy but sync immediately deletes all the recovered emails, even if specifying sync only last week Not nice! Is starting Thunderbird offline after recovering the profile and copying to local files the only option? Is it really not possible to turn off sync for mails older than x, or apply some intelligent filtering to the synchronization?

所有回复 (6)

more options

Do I understand correctly that you tried to sync a folder with 45k messages, i.e. upload 45k to an IMAP server? Even if you don't exceed the daily bandwidth limit of the server, uploading this way only works with small numbers of messages at a time. Copy the backup mbox files to Mail/Local Folders in the profile folder, with TB closed, and either upload limited numbers at a time, or keep the messages in Local Folders.

more options

Sorry, I don't know what you mean by "backup mbox files." Recovering a Thunderbird profile doesn't initiate an upload to the server -- if the files are not present on the server, then sync deletes them from the profile. If there is a way to push recovered files back to the server, that would solve my problem. Storing the recovered mails in local folders is not a great solution -- unless the local folders are on shared storage, they will only be viewable from the local machine.

more options

TB stores mail in one mbox file per folder, a file with no extension and named after the folder, e.g. Inbox. An mbox can be copied from a backup profile to Mail/Local Folders.

There is an experimental add-on that you might find useful for copying from Local Folders to an IMAP folder:

https://bugzilla.mozilla.org/show_bug.cgi?id=538375#c169

more options

Understood, but this doesn't address the stated problem: - how can I prevent synchronization from deleting mail that exists in my profile backup but not on the server or - how can I upload email from a restored profile to the mail server

more options

I don't think you can prevent the mail from being deleted if it doesn't exist on the server, unless you go offline (File/Offline/Work Offline); it won't magically reappear on the server just because it's in the restored profile. As already explained, copy the mbox files from the backup profile to Mail/Local Folders of the current profile, restart TB, then copy from Local Folders to the IMAP folders, in limited numbers or with the add-on.

more options

I had started copying the emails first to Local Folders and from there to imap folders via the UI, but copying the mbox files to the ThunderbirdLocalFolders directory is a most excellent solution and saves a boatload of work. Kudos to you and thanks your help! There are thousands of emails to be recovered, but it looks like this is will work.