← back to George Gmail
com.steve.george-drain-old-drafts.plist
44 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.steve.george-drain-old-drafts</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/node</string>
<string>/Users/macstudio3/Projects/george-gmail/delete-old-drafts-info.js</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>CONFIRM</key>
<string>1</string>
<!-- Runaway guard: if >800 drafts are >30d in one run, skip auto-delete and WARN for human review. -->
<key>MAX_AUTO_DELETE</key>
<string>800</string>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>WorkingDirectory</key>
<string>/Users/macstudio3/Projects/george-gmail</string>
<!-- Daily at 04:15 (low George/Gmail traffic; after the initial cleanup the daily backlog is small). -->
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key><integer>4</integer>
<key>Minute</key><integer>15</integer>
</dict>
<key>StandardOutPath</key>
<string>/Users/macstudio3/Projects/george-gmail/logs/drain-old-drafts.out.log</string>
<key>StandardErrorPath</key>
<string>/Users/macstudio3/Projects/george-gmail/logs/drain-old-drafts.err.log</string>
<key>RunAtLoad</key>
<false/>
</dict>
</plist>