Email Management – Search and Bulk Delete
When a user selects all emails matching a search criterion using the “Select all 110 messages that match this search” option and initiates the delete action, the system displays a confirmation indicating that all selected messages have been deleted.
However, only the first page of emails (50 messages, based on the configured page size) is actually deleted. The remaining selected emails on subsequent pages are not deleted, despite the system indicating that the entire selection has been processed successfully.
Steps to Reproduce
Log in to the email application.
Search for emails using a specific sender or keyword (e.g., canadavisa newsletter).
Ensure that the search returns more emails than the configured page size (e.g., 110 messages).
Select the emails displayed on the first page.
Click “Select all 110 messages that match this search” to select all matching emails across all pages.
Click the Delete button.
Observe the system's confirmation message.
Recheck the search results to verify whether all matching emails have been deleted.
Actual Result
The system indicates that all selected emails have been deleted successfully.
Only the first 50 emails (the current page size) are deleted.
The remaining 60 emails continue to appear in the search results.
The displayed success confirmation does not reflect the actual deletion outcome.
Expected Result
The system should delete all 110 emails selected across all pages, not just the 50 emails displayed on the current page.
The success confirmation should appear only after all selected emails have been successfully deleted.
If any emails fail to be deleted, the system should clearly indicate the number of successfully deleted and remaining emails.