Steps to reproduce
- Have some unread mails in the Trash, and one in the Inbox
- See the Unread Mail widget in the web dashboard, which shows only the unread mail in the Inbox
- Get the unread mail through the API:
curl -u user:pass "http:/nextcloud.address/ocs/v2.php/apps/dashboard/api/v1/widget-items?widgets[]=mail-unread" -H "Accept: application/json"
Expected behavior
Dashboard API should return the same unread mails as seen in the web dashboard, i.e. only the ones in Inbox.
Actual behavior
API response contains the unread mail in Inbox, followed by the unread mails in Trash.
Mail app version
No response
Mailserver or service
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database
No response
Additional info
Versions are whatever we have in our company server
Originally reported in nextcloud/android#10873
Steps to reproduce
curl -u user:pass "http:/nextcloud.address/ocs/v2.php/apps/dashboard/api/v1/widget-items?widgets[]=mail-unread" -H "Accept: application/json"Expected behavior
Dashboard API should return the same unread mails as seen in the web dashboard, i.e. only the ones in Inbox.
Actual behavior
API response contains the unread mail in Inbox, followed by the unread mails in Trash.
Mail app version
No response
Mailserver or service
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database
No response
Additional info
Versions are whatever we have in our company server
Originally reported in nextcloud/android#10873