feature request: maintain folder structure with expunged email
Currently when I am expunging messages, the expunged (to be purged messages) are counted / listed at INBOX.
Say for instance that a user would accidentally delete the mailbox 2014. The whole folder structure below it would be lost. If someone creates a folder structure, this folder structure has important added value.
I have my doubts on this design discarding of mailboxes like this. I think the use of mailboxes/folder structures is not valued enough. If you have a lot of email and put these emails in folders, the folder structure is part of the important information. Currently this 'important information' is lost with expunging.
I can understand that it maybe quite an effort to implement preserving this information. But using the doveadm import to restore a lot of emails, is really not an option. I assume that also restoring email from a specific folder does not work. Say I delete foldera, folderb and folderc. How can I get back folderb.
[@]# mailbox-ls.sh testtest size listing mailboxes of rittest: Archive msgs=0 vsize=0B Archive/2011 msgs=0 vsize=0B Archive/2012 msgs=0 vsize=0B Archive/2013 msgs=8 vsize=7.4KiB Archive/2014 msgs=0 vsize=0B Archive/2015 msgs=0 vsize=0B Archive/2016 msgs=0 vsize=0B Archive/2017 msgs=1214 vsize=103MiB Archive/2018 msgs=70 vsize=5.9MiB Archive/2019 msgs=221 vsize=18MiB Archive/Archive msgs=1 vsize=2.4KiB Archive/INBOX msgs=0 vsize=0B Drafts msgs=9 vsize=16MiB delmsgs=0 delvsize=0B INBOX msgs=51 vsize=107MiB delmsgs=3 delvsize=18MiB INBOX/test2 msgs=1 vsize=5.8MiB delmsgs=0 delvsize=0B Junk msgs=2 vsize=2.0KiB delmsgs=0 delvsize=0B RESTORED msgs=0 vsize=0B delmsgs=0 delvsize=0B RESTORED/INBOX msgs=3 vsize=18MiB delmsgs=0 delvsize=0B Sent msgs=17 vsize=7.3KiB delmsgs=0 delvsize=0B test1 msgs=3 vsize=12MiB delmsgs=0 delvsize=0B test3 msgs=0 vsize=0B delmsgs=0 delvsize=0B Trash msgs=0 vsize=0B delmsgs=0 delvsize=0B
Feature request: maintain folder/mailbox structure with expunging.
On 17. Mar 2021, at 13.39, Marc <Marc@f1-outsourcing.eu> wrote:
Feature request: maintain folder/mailbox structure with expunging.
You could use lazy_expunge with a namespace. Although it's marked as deprecated, so that might go away at some point. There have been some thoughts about the ability to remember the original folder also in the mailbox-based lazy_expunge folder, but it's not in any near future plans.
Hi this lazy_expunge is indeed the functionality I am looking for. First I thought I could use the dovecot purge for this (by just not running it). But it is just not suited for it.
I am looking for a way: to allow to recover accidentally deleted emails (+folder structure) quickly, without the necessity of restoring them from backup. I think it is good to keep such an option.
Does this lazy_expunge take into account the moving of messages between namespaces? Currently you have a copy + delete action and these messages I do not want to have in the laze_expunge.
-----Original Message----- Sent: 17 March 2021 14:09 Cc: dovecot@dovecot.org Subject: Re: feature request: maintain folder structure with expunged email
On 17. Mar 2021, at 13.39, Marc <Marc@f1-outsourcing.eu <mailto:Marc@f1- outsourcing.eu> > wrote:
Feature request: maintain folder/mailbox structure with expunging.
You could use lazy_expunge with a namespace. Although it's marked as deprecated, so that might go away at some point. There have been some thoughts about the ability to remember the original folder also in the mailbox-based lazy_expunge folder, but it's not in any near future plans.
participants (2)
-
Marc
-
Timo Sirainen