Skip to content

Unread Mail widget gives different results through Dashboard API (lists trash too) #7475

Description

@AlvaroBrey

Steps to reproduce

  1. Have some unread mails in the Trash, and one in the Inbox
  2. See the Unread Mail widget in the web dashboard, which shows only the unread mail in the Inbox
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions