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) 启用推送通知?

        时间:2023-10-20

          <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) 启用推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:从 Gmail 导出邮件 下一篇:姜戈Postgres - 百分位数(中位数)和分组依据

                  相关文章

                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'>

                  1. <legend id='AeJxv'><style id='AeJxv'><dir id='AeJxv'><q id='AeJxv'></q></dir></style></legend>