Android Gmail api 支持检查用户是否回复邮件
Android Gmail api support to check if user replied to the mail
我正在开发一个 Android 应用程序,我需要在其中显示用户未回复的邮件数量(基于特定的 sender/subject)。
这样可行吗?
我并没有特别涉足 GMail API 但是根据谷歌搜索和社区观察一段时间,我认为这似乎是可行的。我认为您可以使用 labels and threads。根据 threads
文档:
The Gmail API uses Thread resources to group email replies with their original message into a single conversation or thread. This allows you to retrieve all messages in a conversation, in order, making it easier to have context for a message or to refine search results.
我想你可以调整一下,比如获取线程中的最新消息,然后检查它是否由用户发送,然后只需 return true 或 false 作为标识符。这里有一个 post 关于 ,可能会有用。不过,代码和逻辑仍然取决于您。
我正在开发一个 Android 应用程序,我需要在其中显示用户未回复的邮件数量(基于特定的 sender/subject)。
这样可行吗?
我并没有特别涉足 GMail API 但是根据谷歌搜索和社区观察一段时间,我认为这似乎是可行的。我认为您可以使用 labels and threads。根据 threads
文档:
The Gmail API uses Thread resources to group email replies with their original message into a single conversation or thread. This allows you to retrieve all messages in a conversation, in order, making it easier to have context for a message or to refine search results.
我想你可以调整一下,比如获取线程中的最新消息,然后检查它是否由用户发送,然后只需 return true 或 false 作为标识符。这里有一个 post 关于