Gmail新电子邮件通知 [英] Gmail new email notification

查看:103
本文介绍了Gmail新电子邮件通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究如何从gmail获取新的电子邮件通知.从我所读的内容来看,这似乎是不可能的.

I've been doing some research into how to get new email notification from gmail. From what I am reading it doesn't really seem to be possible.

Gmail API没有Web钩子,也没有任何可获取新电子邮件通知的东西.另外,至少从我正在阅读的内容来看,IMAP api似乎还无法提供清晰的文档.

Gmail API has no webhooks or anything that would allow to get new email notification. Also IMAP api doesn't seem to be able to, at least from what I'm reading, documentation is rather vague.

所以,我想我想问的是,有没有一种方法可以在收到新电子邮件时实现接收通知,因此我们可以在收到新邮件或正在轮询新电子邮件之后对其进行处理,因为上次轮询是唯一的选择.

So, I guess I am asking is there a way to achieve receiving notification when new email arrives so we can process it when its received or is polling for new emails since last pol the only option.

我不在乎用什么语言编写可能使之成为可能的库.

I don't care in what language is potential library written that could make this possible.

感谢您提供任何信息!

推荐答案

检查一下.

Gmail推送通知现已可用,这意味着您不再需要轮询.

Gmail push notifications are now available and mean you don't need to poll anymore.

https://developers.google.com/gmail/api/guides/push

这篇关于Gmail新电子邮件通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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