[Bug] [Roundcube] Contents of the Trash folder are not automatically deleted. #407

Closed
opened 2023-01-08 11:52:21 +01:00 by Ghost · 7 comments

I have Settings -> Forders -> Trash -> Delete messages after set to 1 Month.
However, the trash can is not emptied anytime soon.
The auto-delete is not working.

I have Settings -> Forders -> Trash -> Delete messages after set to 1 Month. However, the trash can is not emptied anytime soon. The auto-delete is not working.
Owner

THanks for reporting it. Adding it to the current milestone.

THanks for reporting it. Adding it to the current milestone.
muppeth added this to the 23.01 - January milestone 2023-01-11 09:56:52 +01:00
muppeth added this to the 23.01 - January project 2023-01-11 09:56:54 +01:00
muppeth added the
Roundcube
label 2023-01-11 09:57:00 +01:00
Owner

I can confirm @muppeth

I've tested from prod and from vagrant. I didn't find anything interesting in logs.

I can confirm @muppeth I've tested from prod and from vagrant. I didn't find anything interesting in logs.
Owner

Ok. did some digging and here is what is happening.
Delete messages after set time feature can be set to all folders. This means you "delete" messages on those folder by either marking them to be deleted or moving them to Trash. Trash folder is a special one (just like on the desktop). Since those emails in trash are considered deleted, nothing happens. In Settings > Preferences > Server settings under Maintenance tab, you can specify to clear Trash on logout. This then triggers the server to permanently empty the trash.

It is indeed a bit of a confusing situation here and perhaps we could think and suggest to roundcube developers or the delete_old developers a way to make it more clear. I think starting from renaming the option from "Server Settings" to "Mailbox settings" could already improve. I myself did not think of going to those options since I through it's just read-only settings of the server.

Ok. did some digging and here is what is happening. `Delete messages after set time` feature can be set to all folders. This means you *"delete"* messages on those folder by either marking them to be deleted or moving them to Trash. Trash folder is a special one (just like on the desktop). Since those emails in trash are considered deleted, nothing happens. In `Settings > Preferences > Server settings` under `Maintenance` tab, you can specify to clear Trash on logout. This then triggers the server to permanently empty the trash. It is indeed a bit of a confusing situation here and perhaps we could think and suggest to roundcube developers or the delete_old developers a way to make it more clear. I think starting from renaming the option from `"Server Settings"` to `"Mailbox settings"` could already improve. I myself did not think of going to those options since I through it's just read-only settings of the server.
Owner

so if I get it right you can not set Delete messages after set time on trash? You can only set it to be deleted on logout?

so if I get it right you can not set `Delete messages after set time` on trash? You can only set it to be deleted on logout?
Owner

@muppeth I did more research. This option comes from a plugin we have install https://github.com/ron4mac/roundcube_delete_old
It doesn't seem to be maintained anymore, so what about we just remove it?

@muppeth I did more research. This option comes from a plugin we have install https://github.com/ron4mac/roundcube_delete_old It doesn't seem to be maintained anymore, so what about we just remove it?
Owner

@meaz The plugin works as expected. It's just a bit confusing. You can set this plugin on any of your folders and set to automatically move emails to trash during login or logout after set amount of time. The confusing part is the delete. Just like on desktop when you "delete" file, it is actually moved to trashbin. it works the same way, it moves thigns to trash. To remove from trash automatically, there is another option in Server Settings where you can select to emtpy trash "older than" during logout.

@meaz The plugin works as expected. It's just a bit confusing. You can set this plugin on any of your folders and set to automatically move emails to trash during login or logout after set amount of time. The confusing part is the delete. Just like on desktop when you "delete" file, it is actually moved to trashbin. it works the same way, it moves thigns to trash. To remove from trash automatically, there is another option in `Server Settings` where you can select to emtpy trash `"older than"` during logout.
Owner

ok I get it...

ok I get it...
meaz closed this issue 2023-01-19 10:49:02 +01:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Disroot/Disroot-Project#407
No description provided.