You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I want to be able to delete a whole folder hierarchy so I don't have to delete each subfolder one by one .
As a user, I want the deleted folder to appear as-is in the trash folder until the 30 day period is over so I can restore the hierarchy if I made a mistake or change my mind.
AC
Deletion is just moving to trash (any deleted item becomes a direct child of the trash, preserving the rest of the hierarchy)
Folders and contents are deleted recursively after the 30 days grace period
When the folder is empty (no subfolder no mails) we delete it directly
Move and cleanup rules apply to the spam folder
Implementation hints
Folder Cleanup works as follows:
we have to store the move (or creation) time on each folder.
Adapt batch job (CleanupOldMailsBatchJob.java) to inspect every folder that is a descendant of the trash for its move time
if that is >30 days (folder deletion time), delete all mail inside that also has a move time of >30 days (it was here in the trash for at least 30 days)
remove folder if it's empty now. (no mails no sub folders)
Notes
consider inbox rules that target the deleted folders.
consider mails that are moved to a deleted folder
Test Notes
Selecting delete on custom folder that isn't in trash folder moves folder to trash
any empty folders in the trashed folder get removed
Selecting delete on custom folder that is in trash folder deletes folder
The text was updated successfully, but these errors were encountered:
As a user, I want to be able to delete a whole folder hierarchy so I don't have to delete each subfolder one by one .
As a user, I want the deleted folder to appear as-is in the trash folder until the 30 day period is over so I can restore the hierarchy if I made a mistake or change my mind.
AC
Implementation hints
Folder Cleanup works as follows:
Notes
Test Notes
The text was updated successfully, but these errors were encountered: