On Mon, Oct 1, 2007, Jesse Norell <[EMAIL PROTECTED]> said: > On Mon, 2007-10-01 at 19:26 +0200, Michael Monnerie wrote: >> > And what happens when you >> > 1) delete mailbox 'A' >> > 2) re-create mailbox 'A' >> > normal imap behaviour would give you a fresh new and empty mailbox. >> >> Rename the old, delete box to A.yyyymmdd-hhmmss or remove it >> permanently >> then. > > How about using the dbmail internal user (or create another for this > purpose), and change ownership of the folder upon delete. So user > deletes folder 'A' and it gets moved to _@@_dbmail_internal_user@@__'s > DeletedFolders/user/yyyymmdd-hhmmss/A or somesuch (and follow up with > updating user's quotas). You could set the message status to 2 on all > those .. after 2 runs through dbmail-util they'll be gone. Then add > another small check to delete folders from under DeletedFolders when > there are no longer any messages contained in them. > > >> I don't have the urgent need for that feature > > Nor I...
I'm also not in any personal need of this feature, but I like the idea. Here's what I think should be done: - add a 'status' column to dbmail_mailboxes. - upon delete, set status to deleted, rename the box with a timestamp. - dbmail-util will do the same status delete -> status purge -> purge as it currently does with messages. - don't change ownership, we need to preserve that information. - recreating a mailbox results in a new empty one. if you want the original box back, you have to get sysadmin intervention. Aaron _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
