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

搜索 | 用户支持

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

详细了解

How do I delete from server after N days yet keep forever locally while using IMAP?

  • 3 个回答
  • 0 人有此问题
  • 5 次查看
  • 最后回复者为 Matt

more options

I would like to keep using imap (because directory synchronization and such) instead of pop, yet I also want to configure thunderbird to delete (expunge) emails from the server after a certain number of days while keeping them intact offline. The reason for this is that I want to keep an offline only archive because it is more secure.

I currently only see options to delete everywhere after N days or delete locally after N days, but I want to keep local and delete from the server. It looks like the server software my email provider uses doesn't have a setting for it either, so doing this in thunderbird is my best chance of getting ut done.

I would like to keep using imap (because directory synchronization and such) instead of pop, yet I also want to configure thunderbird to delete (expunge) emails from the server after a certain number of days while keeping them intact offline. The reason for this is that I want to keep an offline only archive because it is more secure. I currently only see options to delete everywhere after N days or delete locally after N days, but I want to keep local and delete from the server. It looks like the server software my email provider uses doesn't have a setting for it either, so doing this in thunderbird is my best chance of getting ut done.

所有回复 (3)

more options

IMAP is a protocol with clear specifications on how it works. And so using imap literally means software implementing it will have the same message on the server that are presented to the local computer. End of story. https://support.mozilla.org/en-US/questions/new/thunderbird

To accomplish an approximation of what you want your only choice is to copy the messages you want to keep to Local Folders before deleting from the imap server.

more options

You explained that copying to Locla Folders is the best course of action (if not the only). That leads me to ask how I can accomplish that. I've evaluated how I envision archiving my mail off-line and came to the following:

- I want to automatically copy all email from my imap account to local folders each time Thunderbird syncs with the server - I want to keep the existing folder structure; meaning sent email are copied to a local "sent" folder. Trash to a local "trash" folder, inbox to a local inbox folder etc. - I also want to download and store attachments to local folders - If a new (sub) folder is created on imap, i want to automatically create that same folder in my Local Folders - After copying all mail and attachments to local folders I want to delete any mail older than 100 days from my IMAP but preserve them locally. - If something gets deleted of my IMAP after it was copied over to Local Folders it is not deleted from Local Folders. So If I deleted a submap on my IMAP the submap is not deleted from Local Folders.

How can I achieve this? I studied mail filters but I see no ways to copy from a certain (sub)folder. Nor do I see ways to detect a new sun folder and create it locally.

Do I need plugins to achieve my desired result? And if yes, which plugins? Of course I had a look myself but I found nothing about creating folders automatically, and most references to plugins are many years old leading my to worry that these plugins might be outdated or buggy.

more options

Actually he did not say copying to local folders was the best course of action, it is not. Using POP for local storage is the best approach because it is designed to be stand alone from the server.

IMAP is synchronized IMAP is not. POP has just a maildrop which is general considered to be the inbox and recognizes no folders, IMAP does. Those are the realities. Automated archiving is possible specifying a local folder 5to archive to, but really I would not recommend it. Nothing that copies/moves large numbers of emails from an IMAP server/account to local folders can really be considered to be a reliable process.