InboxCleaner is a web application that helps users manage their Gmail inbox by moving old unread emails to the trash. This project is built using Django and the Gmail API.
-
Gmail Authentication: Users can authenticate their Gmail account to access their inbox.
-
Confirm Cleanup Date: Users can confirm a cleanup date, and the application will move unread emails older than that date to the trash.
-
Cleanup Success: After the cleanup process, users receive a confirmation with the number of unread emails moved to the trash.
- Python 3.x
- Django
- Gmail API credentials (client secrets)
-
Clone the repository:
git clone https://github.com/your-username/InboxCleaner.git cd InboxCleaner
-
Install dependencies:
pip install -r requirements.txt
-
Configure Gmail API:
- Follow the Gmail API Python Quickstart guide to obtain credentials.json: Gmail API Python Quickstart
-
Run the application:
python manage.py runserver
-
Access the application in your web browser: http://127.0.0.1:8000/
-
Open the application in your web browser.
-
Click on "Get Started" to initiate Gmail authentication.
-
Confirm a cleanup date to move unread emails older than that date to the trash.
-
receive a success message.
Contributions are welcome! Fork the repository, create a new branch, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.