触发器为空时,如何停止apps-scripts-notifications@google.com的脚本通知邮件?
Hey Ania, sorry to hear those repetitive failure notifications from apps-scripts-notifications@google.com are clogging your inbox—let’s walk through actionable steps to resolve this, even if your triggers list looks empty:
Step 1: Locate the "Eml Manager" Script (and any linked scripts)
Sometimes scripts can hide in unexpected places, even if triggers aren’t visible:
- Open the Google Apps Script dashboard by visiting
script.google.comin your browser, then check the My Projects tab. Look for "Eml Manager"—it might be buried under older projects. - If you don’t see it there, search your Google Drive with the advanced filter:
type:script "Eml Manager"to find any script files named or containing that phrase, including those in shared folders. - For the
garbageCollectorViewerrelated emails, repeat this search with that name to track down the associated script.
Step 2: Resolve the Authorization Error (or Delete the Script)
The error message says "执行该操作需要授权" (Authorization required to perform this action), which is likely causing repeated failed attempts:
- If you still want to use the "Eml Manager" script: Open it in Apps Script, run any function manually (e.g., the main function tied to the failed trigger). You’ll be prompted to re-authorize the script—follow the steps to grant the necessary permissions. This should stop the failure emails once authorization is fixed.
- If you no longer need the script: Simply delete it from your Google Drive or the Apps Script dashboard. Removing the script entirely will eliminate any background attempts to run it, thus stopping the notifications.
Step 3: Check Google Account Notification Settings
If you still can’t track down the script, you can disable Apps Script failure notifications at the account level:
- Go to your Google Account Settings by visiting
myaccount.google.com - Navigate to Notifications (under the "Privacy & personalization" section)
- Use the search bar to look for "Apps Script"
- Toggle off the switch for "Script failure notifications" or any related alerts tied to failed script executions.
Step 4: Verify Hidden Triggers (Advanced)
In rare cases, triggers might be linked to a Google Cloud Platform (GCP) project instead of the Apps Script UI:
- Open the problematic script in Apps Script, click the Project Settings icon (gear) in the left sidebar.
- Under "Google Cloud Platform (GCP) Project", note the project ID.
- Go to the Google Cloud Console by visiting
console.cloud.google.com, search for that project ID, then navigate to Cloud Scheduler to check for any scheduled jobs tied to the script. Delete any unwanted jobs here.
Once you’ve completed these steps, those annoying failure emails should stop coming in. Let me know if you hit any snags along the way!
内容的提问来源于stack exchange,提问作者Anna Sobolewska

