1. <i id='zwi0A'><tr id='zwi0A'><dt id='zwi0A'><q id='zwi0A'><span id='zwi0A'><b id='zwi0A'><form id='zwi0A'><ins id='zwi0A'></ins><ul id='zwi0A'></ul><sub id='zwi0A'></sub></form><legend id='zwi0A'></legend><bdo id='zwi0A'><pre id='zwi0A'><center id='zwi0A'></center></pre></bdo></b><th id='zwi0A'></th></span></q></dt></tr></i><div id='zwi0A'><tfoot id='zwi0A'></tfoot><dl id='zwi0A'><fieldset id='zwi0A'></fieldset></dl></div>

        <small id='zwi0A'></small><noframes id='zwi0A'>

        <tfoot id='zwi0A'></tfoot>
      2. <legend id='zwi0A'><style id='zwi0A'><dir id='zwi0A'><q id='zwi0A'></q></dir></style></legend>

          <bdo id='zwi0A'></bdo><ul id='zwi0A'></ul>

        如何使用 Python imaplib 为 IMAP (Gmail) 启用推送通知?

        How do I enable push-notification for IMAP (Gmail) using Python imaplib?(如何使用 Python imaplib 为 IMAP (Gmail) 启用推送通知?)

          <i id='Xh8Y8'><tr id='Xh8Y8'><dt id='Xh8Y8'><q id='Xh8Y8'><span id='Xh8Y8'><b id='Xh8Y8'><form id='Xh8Y8'><ins id='Xh8Y8'></ins><ul id='Xh8Y8'></ul><sub id='Xh8Y8'></sub></form><legend id='Xh8Y8'></legend><bdo id='Xh8Y8'><pre id='Xh8Y8'><center id='Xh8Y8'></center></pre></bdo></b><th id='Xh8Y8'></th></span></q></dt></tr></i><div id='Xh8Y8'><tfoot id='Xh8Y8'></tfoot><dl id='Xh8Y8'><fieldset id='Xh8Y8'></fieldset></dl></div>

              <tbody id='Xh8Y8'></tbody>
              <bdo id='Xh8Y8'></bdo><ul id='Xh8Y8'></ul>
            • <tfoot id='Xh8Y8'></tfoot>

                  <small id='Xh8Y8'></small><noframes id='Xh8Y8'>

                  <legend id='Xh8Y8'><style id='Xh8Y8'><dir id='Xh8Y8'><q id='Xh8Y8'></q></dir></style></legend>
                1. 本文介绍了如何使用 Python imaplib 为 IMAP (Gmail) 启用推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Is there a way to monitor a gmail account using imaplib without polling gmail each time I want to see if there is new mail. Or in other words, I just want the script to be notified of a new message so I can process it right away instead of any lag time between polls.

                  I see that the IMAP protocol supports this with the IDLE command, but I can't see anything documented with it in the imaplib docs, so any help with this would be great!

                  解决方案

                  There isn't something in imaplib that does this, AFAIK (disclamer: I know very little about Python), however, it seems that someone has implemented an IDLE extension for Python which has the same interface as imaplib (which you can swap out with no changes to existing code, apparently):

                  https://github.com/imaplib2/imaplib2

                  这篇关于如何使用 Python imaplib 为 IMAP (Gmail) 启用推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Running .jl file from R or Python(从 R 或 Python 运行 .jl 文件)
                  Running Julia .jl file in python(在 python 中运行 Julia .jl 文件)
                  Using PIP in a Azure WebApp(在 Azure WebApp 中使用 PIP)
                  How to run python3.7 based flask web api on azure(如何在 azure 上运行基于 python3.7 的烧瓶 web api)
                  Azure Python Web App Internal Server Error(Azure Python Web 应用程序内部服务器错误)
                  Run python dlib library on azure app service(在 azure app 服务上运行 python dlib 库)

                    <tbody id='AeJxv'></tbody>
                2. <tfoot id='AeJxv'></tfoot>
                    • <bdo id='AeJxv'></bdo><ul id='AeJxv'></ul>
                      <i id='AeJxv'><tr id='AeJxv'><dt id='AeJxv'><q id='AeJxv'><span id='AeJxv'><b id='AeJxv'><form id='AeJxv'><ins id='AeJxv'></ins><ul id='AeJxv'></ul><sub id='AeJxv'></sub></form><legend id='AeJxv'></legend><bdo id='AeJxv'><pre id='AeJxv'><center id='AeJxv'></center></pre></bdo></b><th id='AeJxv'></th></span></q></dt></tr></i><div id='AeJxv'><tfoot id='AeJxv'></tfoot><dl id='AeJxv'><fieldset id='AeJxv'></fieldset></dl></div>

                        <small id='AeJxv'></small><noframes id='AeJxv'>

                        • <legend id='AeJxv'><style id='AeJxv'><dir id='AeJxv'><q id='AeJxv'></q></dir></style></legend>