SlavaG
SlavaG

Reputation: 540

Gmail API Users.Messages.get return some messages without any label

Trying to get messages from Gmail using RESTFul API using get operation and some messages are returned empty labels (other parts of the payload are ok).

What is the reason to get empty labels ?

Thanks

Upvotes: 0

Views: 747

Answers (2)

Eric D
Eric D

Reputation: 7159

This seems like expected behavior. If they don't have any labels (e.g. not even INBOX) then they are simply in All Mail (e.g. they have been archived and are in the mailbox, etc).

Upvotes: 0

Brandon Jewett-Hall
Brandon Jewett-Hall

Reputation: 746

Messages without labels are archived messages.

Upvotes: 2

Related Questions