gpt4 book ai didi

google-apps-script - 如何在 App Script 中关闭对话 View

转载 作者:行者123 更新时间:2023-12-05 07:34:48 29 4
gpt4 key购买 nike

我正在编写一个脚本,该脚本从分配给特定标签的收到的电子邮件地址中提取 Gmail 附件,并将附件移动到 Google 云端硬盘中的特定文件夹,现在我的问题是当我收到来自同一电子邮件主题的同一发件人的电子邮件时保存在不同的标签中脚本忽略将附件移动到谷歌驱动器中的不同文件夹,因为谷歌将同一主题的电子邮件分组为对话但是当我关闭 Gmail 中的对话 View 时脚本工作。是否有解决此问题的方法或 Google App Script 中的功能来打开和关闭对话 View ?示例:

   { // subject1 >>
"filter": "from:no-reply@test1.com", // Email to extract attachments from
"folder": "folder1/Belasting/20000/Berario/", // Folder to send attachments to in Gdrive
"filenameTo": "'%s' ~ yyyy MM dd", // format of renaming files if {RenameFile is set to true}
"Renamefile": false, // Turn renaming of files on and off
"globalFilter": "has:attachment in:label1-coj-berario -in:trash -in:drafts -in:spam", // Labels to fetch attachments from in Gmail
"markUsRead": false,
"newerThan": "1m", // how far back to fetch attachments
"archive": true // Turn achiving on and off
},

{ // subject1
"filter": "from:no-reply@test1.com", // Email to extract attachments from
"folder": "folder1/Belasting/20000/Tan", // Folder to send attachments to in Gdrive
"filenameTo": "'%s' ~ yyyy MM dd", // format of renaming files if {RenameFile is set to true}
"Renamefile": false, // Turn renaming of files on and off
"globalFilter": "has:attachment in:label2-coj-berenice-tan -in:trash -in:drafts -in:spam", // Labels to fetch attachments from in Gmail
"markUsRead": false,
"newerThan": "1m", // how far back to fetch attachments
"archive": true // Turn achiving on and off
},

电子邮件有相同的主题不同的标签和文件夹要保存,但因为电子邮件有相同的主题并在对话 View 中分组脚本提取附件并将​​它们保存在同一个文件夹中

最佳答案

您可以从 Gmail 应用程序设置中切换对话。单击查看所有设置。向下滚动,你会发现这个。对话 View :(设置相同主题的邮件是否分组)
对话 View 对话 View 关闭

只需点击对话 View 即可。

关于google-apps-script - 如何在 App Script 中关闭对话 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49937516/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com