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

  • <tfoot id='yikQw'></tfoot>

          <bdo id='yikQw'></bdo><ul id='yikQw'></ul>
      1. <small id='yikQw'></small><noframes id='yikQw'>

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

      2. 使用 imaplib 获取电子邮件,但不要将其标记为 SEEN

        时间:2023-10-20

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

                  <tbody id='8IRdx'></tbody>
                  <bdo id='8IRdx'></bdo><ul id='8IRdx'></ul>

                • <small id='8IRdx'></small><noframes id='8IRdx'>

                • 本文介绍了使用 imaplib 获取电子邮件,但不要将其标记为 SEEN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想解析来自用户收件箱的一些电子邮件,但是当我这样做时:

                  I want to parse some emails from a user 's inbox but when I do:

                  typ, msg_data = imap_conn.fetch(uid, '(RFC822)')
                  

                  它将电子邮件标记为已读或已读.这不是所需的功能.你知道我怎样才能让电子邮件保持以前的凝视状态,要么看到要么没看到?

                  It marks the email as SEEN or read. This is not the desired functionality. Do you know how can I keep the email at its previous stare either SEEN or NOT SEEN?

                  推荐答案

                  您也可以在选择文件夹时将 read_only 设置为 true:

                  You might also set read_only to true when selecting the folder:

                  imap_conn.select('Inbox', readonly=True)
                  

                  这篇关于使用 imaplib 获取电子邮件,但不要将其标记为 SEEN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Django 迁移未检测到所有更改 下一篇:使用 Python 向 Gmail 发送带有内联图像的电子邮件

                  相关文章

                    • <bdo id='CU0Ru'></bdo><ul id='CU0Ru'></ul>
                    <legend id='CU0Ru'><style id='CU0Ru'><dir id='CU0Ru'><q id='CU0Ru'></q></dir></style></legend>

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

                    1. <small id='CU0Ru'></small><noframes id='CU0Ru'>

                    2. <tfoot id='CU0Ru'></tfoot>