The ability to automate Gmail is a powerful feature of Google Apps Script. However, running untested scripts—especially those generated by AI—directly on your live Gmail account is risky. A single mistake could lead to damaging consequences, like spamming all your contact, accidentally deleting critical messages or sending 1000 emails to your boss. This is where gas-fakes comes in. It provides a sandboxing environment that allows you to set limits and rules to test your Gmail scripts in a safe, controlled manner. We've already shown how sandboxing can ensure targeted access to workspace files in Fake-Sandbox for Google Apps Script: Granular controls. The gas-fakes sandbox builds on a similar whitelisting approach, but also adds additional features specific to gmail controls. A Practical Guide to the gas-fakes Gmail Sandbox These are the granular controls available in the gmail sanbox. Any attempt that violates the sandboxing rules will throw an error. Services - you can enable or disable entire ...