测试列表文件需要您的许可才能访问您在 Google 上的数据



每次我运行任何谷歌脚本时,都会弹出此消息。

-- 测试列表文件需要您的许可才能访问您在 Google 上的数据。

我从第三方应用程序中删除了它,但它仍然不断弹出。 我试图运行一个脚本来收集所有被拒绝的电子邮件,它希望访问更多访问权限,但我拒绝了。下面是脚本。有些东西嵌入在某处,我不确定在哪里。

function getBouncedEmails() {
    /* Written by Amit Agarwal */
    /* Email: amit@labnol.org  */
    // Write the bounced email report to a Google SpreadsheetApp
   /var sheet = SpreadsheetApp.getActiveSheet();
    sheet.getRange(2, 1, sheet.getLastRow(), sheet.getLastColumn()).clearContent();
    // Find all emails returned via Gmail Mailer Maemon
    var query = "from:(mailer-daemon@google.com OR mailer-daemon@googlemail.com)";
    // Get the most recent 1000 bounced email messages in Gmail
    GmailApp.search(query, 0, 1000).forEach(function(thread) {
        thread.getMessages().forEach(function(message) {
            if (message.getFrom().indexOf("mailer-daemon") !== -1) {
                var body = message.getPlainBody();
                 Get the bounced email address from the body
                var matches = body.match(/Delivery to[sS]+?(S+@S+)s([sS]+?)----- Original Message/);
            }
        });
   });
}

下面介绍了如何防止任何 Google 脚本访问您的数据。

  1. 转到 https://security.google.com/settings/security/permissions

  2. 单击要卸载的脚本

  3. 接下来单击删除,您就完成了。

最新更新