Skip to content
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 a confirmation action for permanently deleting emails #7707

Open
3 tasks done
Philippe-Choquette opened this issue Mar 8, 2024 · 7 comments
Open
3 tasks done
Labels
type: enhancement New features or improvements to existing features.

Comments

@Philippe-Choquette
Copy link

Philippe-Choquette commented Mar 8, 2024

Checklist

  • I have used the search function to see if someone else has already submitted the same feature request.
  • I will describe the problem with as much detail as possible.
  • This issue only contains a request for one single feature, not multiple (related) features.

App version

6.800

Problem you are trying to solve

Prevent accidental deletion of emails in the "Trash", since after they're gone from there, they're gone for good.

One scenario when this can happen (as it just did to me):
You delete an email from inbox, then realize you still had to check something. You go to the trash to get the email back, and verify what you needed to. Then, when you're done with it, you may forget that it's already in the trash, and so you click the "Delete" button again; it's gone for good.

Suggested solution

Add something similar to the Outlook for Android implementation (default), where a confirmation message is shown before being able to delete an email from the "Trash" folder, and which specifies that the deletion will be permanent.

Screenshots / Drawings / Technical details

Add a new action to the already existing "Confirm actions" menu of the Interaction settings section; maybe something called "Delete (in Trash)".

Screenshot_20240308-152951-452

I would assume that, by default, the confirmation message for these actions are generic, and so if this new action was to be implemented, having a personalized message (like done by Outlook devs) would be beneficial. Otherwise, a user who has multiple confirm actions enabled might confirm without thinking twice, which defeats the whole purpose of the confirmation feature.

@Philippe-Choquette Philippe-Choquette added type: enhancement New features or improvements to existing features. unconfirmed Newly reported issues awaiting triage or confirmation labels Mar 8, 2024
@cketti cketti removed the unconfirmed Newly reported issues awaiting triage or confirmation label Mar 14, 2024
@beradeep
Copy link

@cketti I am new to this project. I hope my PR solves this issue. Would like you to review it.

@Philippe-Choquette
Copy link
Author

Thank you for committing to this!

Would the confirmation also appear for when you delete a message located in the trash but that you fetched using the search? In this context, it would make sense to have the message specify that it will be deleted from the trash, since search results, as of now, do not indicate the folder that messages are located in.

@beradeep
Copy link

Thanks, I looked into it. Right now, I think there isn't any way to find out whether a result from a search in the unified inbox belongs to the trash folder.

@cketti
Copy link
Member

cketti commented Mar 18, 2024

I don't think this should be limited to deleting messages from the trash folder. The app should ask for confirmation whenever a message is about to be deleted permanently. That includes deleting messages from the trash folder, but also applies when no trash folder is configured and deleting a message would permanently delete it right away.

I suggest using the following messages:

  • Do you want to permanently delete this message?
  • Do you want to permanently delete these messages?

A special case is deleting multiple messages from the message list. In that case some messages could be deleted permanently while others will be moved to the trash folder.

I suggest the following message for this special case:

  • Do you want to delete these messages, ${numberOfPermanentlyDeleted} of them permanently?

@cketti cketti changed the title Add a confirmation action for deleting emails in the trash specifically Add a confirmation action for permanently deleting emails Mar 18, 2024
@beradeep
Copy link

Yes, that makes a lot of sense.

@Philippe-Choquette
Copy link
Author

Philippe-Choquette commented Mar 18, 2024

Definitely the best way to implement this indeed! Well thought.

With that said, it would require a verification of the folder in which the selected messages are located. As @beradeep said, you can get a list of messages from multiple folders in the unified inbox, but it can also be the case if you initiate a search from any folder, and then change the mode to "search everywhere". — @beradeep said this capability doesn't seem possible currently.

@cketti
Copy link
Member

cketti commented Mar 19, 2024

It is possible to find out what folder a message is in. The app also uses this information to decide whether to move the message to the trash folder or delete it permanently. But that's a detail that belongs to the pull request discussion, not here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New features or improvements to existing features.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants