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

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

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

        循环播放特定 Gmail 标签的邮件(不是线程)

        Looping on messages (not threads) of a specific Gmail label(循环播放特定 Gmail 标签的邮件(不是线程))
      1. <i id='7BvgL'><tr id='7BvgL'><dt id='7BvgL'><q id='7BvgL'><span id='7BvgL'><b id='7BvgL'><form id='7BvgL'><ins id='7BvgL'></ins><ul id='7BvgL'></ul><sub id='7BvgL'></sub></form><legend id='7BvgL'></legend><bdo id='7BvgL'><pre id='7BvgL'><center id='7BvgL'></center></pre></bdo></b><th id='7BvgL'></th></span></q></dt></tr></i><div id='7BvgL'><tfoot id='7BvgL'></tfoot><dl id='7BvgL'><fieldset id='7BvgL'></fieldset></dl></div>
        <legend id='7BvgL'><style id='7BvgL'><dir id='7BvgL'><q id='7BvgL'></q></dir></style></legend>
        • <bdo id='7BvgL'></bdo><ul id='7BvgL'></ul>

          <tfoot id='7BvgL'></tfoot>

            <tbody id='7BvgL'></tbody>

              <small id='7BvgL'></small><noframes id='7BvgL'>

                • 本文介绍了循环播放特定 Gmail 标签的邮件(不是线程)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我通过以下步骤将特定的消息(而不是整个线程)添加到标签to_process:

                  I added specific messages (and not the whole thread) to a label to_process with these steps:

                  1. 在 Gmail 设置中关闭 对话模式

                  将标签 to_process 应用于特定消息

                  Apply the label to_process to specific messages

                  显示消息时,我可以确认只添加了特定的消息.例如,同一线程中的另一条消息没有此标签.这很好.

                  When displaying the messages, I can confirm that only the specific messages have been added. For example, another message which is in the same thread doesn't have this label. This is good.

                  现在我想循环播放来自 Google Apps 脚本的所有这些消息.但问题是 API 只能授予对附加到某个标签的 threads 的访问权限:

                  Now I'd like to loop on all these messages from Google Apps Script. But the problem is that the API can only give access to threads attached to a certain label:

                  var threads = GmailApp.search('label:to_process'); 
                  for (var i = 0; i < threads.length; i++) {
                      // problem: here I cannot access to messages but only threads
                  }
                  

                  var label = GmailApp.getUserLabelByName("to_process");
                  var threads = label.getThreads();
                  for (var i = 0; i < threads.length; i++) {
                      // problem: here I cannot access to messages but only threads       
                  }
                  

                  如何循环播放与标签关联的消息(而不是线程)?

                  开始解决方案,但我不知道如何继续:

                  Beginning of a solution but I don't know how to continue:

                  var threads = GmailApp.search('label:to_process'); 
                  for (var i = 0; i < threads.length; i++) {
                      var messages = threads[i].getMessages();
                      for (var j = 0; j < messages.length; j++) {
                          var message = messages[j];
                  
                          // pseudo code here because getMessageLabels doesn't exist
                          //if ("to_process" is in message.getMessageLabels()) {
                          /
                                  
                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Gradient Button to background-color blinks on hover(悬停时背景颜色的渐变按钮闪烁)
                  How to make hovering over active button not use hover effect?(如何使悬停在活动按钮上不使用悬停效果?)
                  html javascript show image hover(html javascript 显示图像悬停)
                  How to get css hover values on click?(如何在点击时获得 css 悬停值?)
                  Change background image on link hover(更改链接悬停时的背景图像)
                  Highlight multiple items on hover#39;s condition(突出显示悬停条件下的多个项目)
                  <legend id='LhtkO'><style id='LhtkO'><dir id='LhtkO'><q id='LhtkO'></q></dir></style></legend>

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

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

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