To remove messages from your results that have been deleted, you will need to:
- Lookup the role /
name
of the folder using the API endpoint /label, look fortrash
- Store this label_id
- Then filter out the result form API endpoint /messages with this label_id in the attribute
not_in
This way you get around all the localisations and variables of display_name
i.e. Deleted Items / Verwijder Items
This works for all providers.
Updated
Comments
0 comments
Please sign in to leave a comment.