isafulf / inbox_cleaner Goto Github PK
View Code? Open in Web Editor NEWA python script to help manage a Gmail inbox by filtering out promotional emails using GPT-3 or GPT-4.
A python script to help manage a Gmail inbox by filtering out promotional emails using GPT-3 or GPT-4.
Hi I have like 25000 emails, read and unread. I am wondering when executing the script, the result I get is:
Email is worth the time, leaving as unread
Total number of unread emails fetched: 37
Total number of pages fetched: 1
Total number of emails marked as read: 0
Final number of unread emails: 37
How do I make it so the script goes through all 25.000 emails and deletes the ones that are not important?
I'm one of those weird people who doesn't have Gmail for their personal email. It would be great if this worked with services other than GMail.
Left to go to work letting this run. Inbox is much better. Fantastically. Several thousands of cleared mail. However, I now owe openai $120. It took about three and a half hours to eat through my monthly budgeted api limit. First time I've hit it since I made an account back in January. So just beware anyone happening to read this before doing the same thing. ๐
Hi,
I am still at the step of setting up OAuth, in the URI field I am setting it to: 'http://localhost'
The script opens a random port every time, how do I define this in the URI or in the script, right now I am always getting:
_**Error 400: redirect_uri_mismatch
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.
If you're the app developer, register the redirect URI in the Google Cloud Console.
Request details: redirect_uri=http://localhost:64714/
Related developer documentation**_
Because it is a random port every time, how to I proceed?
Thank you so much!
EDIT: Got it working by manually defining the port in the script.
This would, in theory, work with non OpenAI Models as well right? It would be cool to use a model like LLAMA for it.
Instead of only picking up junk and put it to junk. Why not put every mail into corresponding folder?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.