根据用户阅读邮件的时间对Gmail邮件进行分类 [英] Categorizing Gmail messages based on the time user spent reading the message

查看:123
本文介绍了根据用户阅读邮件的时间对Gmail邮件进行分类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



对于我打开的每封邮件,它会追踪我在阅读邮件时所花费的时间, 。例如,如果我打开消息1,然后移动到消息2,则通过在2秒内单击一个按钮,它会注意到消息1所用的时间少于2秒。



Gmail会自动标记用户花费的时间少于可配置时间(例如2秒)的消息并为其分配一个标签,例如LowAttentionSpan。通过这种方式,用户可以定期查找带有此标签的邮件,并采取类似于从列表中取消订阅的操作,以最大限度地减少收件箱上的时间。



是这样一个功能已经可以使用,或者可以使用Gmail API进行开发?

正如gerardnimo所说,目前还没有可用于Gmail的此类功能。

。但使用Gmail API的近似解决方案让人想起:


  1. 订阅推送通知并发布 watch UNREAD -label。

  2. 每次您收到推送通知对于某个用户来说,这意味着用户刚刚开始阅读邮件(或者将旧邮件标记为 UNREAD )。检查自上次收到相同用户通知以来的时间差异。如果差异小于 LowAttentionSpan 秒,则可以添加自定义标签

这个简单的解决方案虽然有一些注意事项。

如果用户将旧邮件标记为未读,可能会导致一些不需要的行为。

另外,如果用户只读取一封邮件,三个小时后再读一个,上面的解决方案将解释为用户阅读第一封邮件三个小时,情况并非如此。换句话说,当用户连续阅读多个新邮件时,它就会工作。


I am looking for the following feature in Gmail.

For each message I open, it tracks the time I spent reading the message when it is feasible to do so. For example, if I open message 1 and then move to message 2, by clicking a button within 2 seconds, it notes that the time spent on message 1 is less than 2 seconds.

Gmail automatically labels the messages on which the User spends less than some configurable amount of time (say 2 seconds) and assigns them a label, say "LowAttentionSpan". This way the user can periodically look for messages with this label and take actions like unsubscribing from a list to minimize the amount of time spent on the Inbox.

Is such a feature already available now or can it be developed using Gmail API?

解决方案

As gerardnimo said, there is currently no such feature available for Gmail. An approximate solution using the Gmail API comes to mind though:

  1. Subscribe to push notifications and issue a watch on the UNREAD-label.
  2. Every time you get a push notification related to a certain user, it will mean that the user just started reading a mail (or marked an old mail as UNREAD). Check the difference in time since last time you got a notification for the same user. If the difference was less than LowAttentionSpan seconds, you could add a custom label to it.

This simple solution has some caveats though.

If the user marks an old message as unread, it might cause some unwanted behavior.

Also, if the user reads only one mail, and comes back e.g. three hours later to read another one, the solution above will interpret that as the user read the first mail for three hours, which will not be the case. It will in other words just work when the user reads multiple new mails in succession.

这篇关于根据用户阅读邮件的时间对Gmail邮件进行分类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆