-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Better handling of deleted messages #40
Comments
You are not the first to bring up this topic, so I agree that the behaviour of the "trash" is problematic and needs to be solved. Here is another possible way: Add the possiblity for the user to empty the trash (users should know this from their email programs). It should be tracked in the databases, if a user has permanently deleted a message from the trash. And the user will never again see the message. Once the second user removes the message from the trash it would be deleted from the database. |
You could also combine the ideas. It's what Gmail does. If you look in the trash of a Gmail account, it says:
In other words, Gmail allows you to manually empty the trash if you want to, but if you don't, it does it automatically for messages that have been in Trash more than 30 days. |
ok, that's the best idea. |
I am currently fixing this issue. I am considering two implementations for marking messages as permanantly deleted:
Which implementation should I favor? I have already implemented the part where messages older than |
@danjjl maybe a combination of both methods would be the best solution? |
@arneb I am not sure my last message was clear enough. But your message does answer my question. I can add two fields to the |
The docstring for the
trash
view says this (source):And the template says this (source):
This is not a very clean solution, in my opinion. I think it would be better to do this:
MESSAGES_DELETED_MAX_AGE
. If developers don't specify this setting, it could default to, say, 30 days.trash
view so that it pulls in the user's deleted messages that are within the time period specified in theMESSAGES_DELETED_MAX_AGE
setting.MESSAGES_DELETED_MAX_AGE
setting.delete_deleted_messages
management command so that the argument is optional instead of required. If the argument isn't given, default to the value of theMESSAGES_DELETED_MAX_AGE
setting.The text was updated successfully, but these errors were encountered: