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

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

        <tfoot id='rft9u'></tfoot>
        • <bdo id='rft9u'></bdo><ul id='rft9u'></ul>

        Google Apps 脚本 - Gmail,永久删除带有特定标签的垃圾箱中的电子邮件

        Google Apps Script - Gmail, delete forever e-mails in trash with specific label(Google Apps 脚本 - Gmail,永久删除带有特定标签的垃圾箱中的电子邮件)
        1. <tfoot id='SWs56'></tfoot>

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

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

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

                  本文介绍了Google Apps 脚本 - Gmail,永久删除带有特定标签的垃圾箱中的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试制作一个脚本,该脚本可以立即永久地自动删除来自某个发件人的电子邮件,因为 Gmail 仅允许将电子邮件发送到垃圾箱 30 天的过滤器.请不要暗示默认过滤器就足够了,至于我的情况,至关重要的是我不知道我收到了来自该发件人的电子邮件.

                  I'm trying to make a script that automatically deletes e-mails from a certain sender immediately and permanently, as Gmail only allows for a filter which sends an e-mail to trash for 30 days. Please do not suggest that the default filter is enough, as for my situation, it is vital that I do not know that I was sent an e-mail from this sender.

                  我当前的脚本如下所示:

                  My current script looks like this:

                  function deleteForever(labelName) {
                      var threads = GmailApp.search("in:trash label:" + labelName);
                      for (var i = 0; i < threads.length; i++) {
                        threads[i].moveToTrash(); // Where I would need a delete forever trigger
                      }
                  };
                  

                  但是,我一直无法找到使用 GmailThread 并将其永久删除的方法,因为不存在用于此目的的函数.我想看看是否有一种方法可以使用 JavaScript 完成任务,但一直找不到方法.

                  However, I have been unable to figure out a way to use a GmailThread and to delete it permanently as there does not exist a function for this purpose. I was looking to see if there was a way I could finish the task using JavaScript, but have been unable figure out a method.

                  有没有人知道如何设置这些电子邮件在收到时永久删除?

                  Does anyone have an idea how I can set these e-mails to delete themselves permanently when received?

                  推荐答案

                  根据设计,使用 GmailApp 永久删除电子邮件是不可能的.

                  It is not possible, by design, to delete an email permanently using GmailApp.

                  这篇关于Google Apps 脚本 - Gmail,永久删除带有特定标签的垃圾箱中的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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(突出显示悬停条件下的多个项目)

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

                    <legend id='Lf1ts'><style id='Lf1ts'><dir id='Lf1ts'><q id='Lf1ts'></q></dir></style></legend>
                    1. <small id='Lf1ts'></small><noframes id='Lf1ts'>

                    2. <tfoot id='Lf1ts'></tfoot>
                          <tbody id='Lf1ts'></tbody>

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