-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trash #100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't test, only had one issue, otherwise looks good i think 👍
Didn't test but also didn't spot any obvious issues. Minor thing but for UI I think it would be better to hide trash tab completely if trash is disabled. Doing so would allow having cleaner main user interface for those who do not want that functionality. |
Hi, I'm not sure with that one because the trash is still there when you disable auto-trashing. Maybe a Trash button, separated from the Delete one, would be better ? And if the autotrash is enabled, then Trash and Delete button do the same thing. |
You know what, maybe we should merge know and change minor things based on user experience ? |
Could be another button, but that suggestion is just based on my personal preference: to not see those buttons/tabs at all because there's a lot of stuff anyway and I would not need those for anything. From this view point adding another button would be even worse. It is debatable if hiding existing message is bad or good thing, some could actually like that feature. But anyway this isn't really useful reasoning for doing so (but also not against doing so), just a note that in the end hiding existing(mails in trash storage) things might actually be usable feature. |
Following your suggestions, I merge |
* Add trash * Add break at end of deleting loop * Show trash tab only when trashing enabled * Update translations
This is a PR for adding trash system to mail, as requested by some players across servers (and myself too). This would complete #38 if merged.
Some interesting infos :
previous_boxes
value to mail while they're in trash (removed after restoring)mail.get_message_boxes(playername, msg_id)
returns a list of boxes like{"inbox", "outbox"}
delete_in_trash
has been added tomail.delete_mail()
to avoid trash delete when you just moved the mails.I'm waiting for your answers to know if you might fix things. Actually tried, it works without crash.
Some screenshots below :