sapn1s/gmail-email-checker — reverse-engineered prompt
Reverse engineered prompt
Build me a small Node.js tool that can connect to my Gmail account, look for the newest unread email from a specific sender, pull out a piece of text using a regex I provide, then mark that email as read so it doesn’t get reused.
I want it to be easy to use from another JavaScript file, like calling one function with the sender, the regex, the path to my Google client secret file, and an optional debug setting. On the first run it should guide me through the Google permission flow in the terminal, give me a link to open, let me paste the returned code, then save the token so I don’t have to do it every time.
Please include clear setup instructions for creating the Gmail API credentials, enabling the right permissions, installing dependencies, and running a simple example for grabbing things like login codes. Look up current Google docs online if you need to.
Want more depth? Deep Reverse