This was the first version of CalmEmail. I started working on it out of the blue in June, thinking, "What if I could build something that automatically sends me email summaries at specific intervals?" So, I built this tool.
This is an email summarizer assistant that you run from your terminal. Once you run the project, it will:
- Fetch your latest emails.
- Summarize those emails using Google Gemini (AI).
- Automatically send you the summary via email at intervals you choose.
You just have to run the project, and it’ll take care of setting up cron jobs based on your input—no manual setup needed!
- Automated Summaries: Fetches the latest emails and summarizes them.
- Cron Job Setup: Automatically sets up cron jobs based on what you tell it.
- Database Storage: Keeps track of the last time emails were fetched using SQLite3, so it only fetches new ones next time.
- Email Automation: Fetches and sends the summaries via email.
Tech | Purpose |
---|---|
Python | The main programming language |
Google Gemini AI | Used for summarizing emails |
Colorama | Makes the terminal look cool with colored text |
SQLite3 | Stores data about the emails you've already fetched |
IMAP | Fetches your emails from your inbox |
SMTP | Sends the summarized emails |
Cron Jobs | Automates the tool to run at intervals you set |
git clone https://github.com/YOUR_USERNAME/Terminal_CalmEmail.git
cd calmemail
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
All the Python packages you need are listed in the requirements.txt
file. Just run:
pip install -r requirements.txt
You'll need an API key for Google Gemini. Set it up like this:
- Create a
.env
file in the project root (or copy the example):
cp .env.example .env
- Then edit your
.env
file to look like this:
API_KEY=your-google-gemini-api-key
Just run it in your terminal:
python calmemail.py
The project will ask you for your email config and when you want it to run. It’ll handle setting up the cron job for you and start summarizing and sending emails.
Here's what you'll need to install (this is already in the requirements.txt
file):
google-generativeai
python-dotenv
requests
colorama
sqlite3
- Run the tool once, and it’ll ask you for your email details and schedule.
- Based on your input, the tool will automatically fetch new emails, summarize them using Google Gemini, and send you the summary.
- You don’t need to worry about setting up cron jobs—CalmEmail handles all that for you.
If you want to contribute to the project, feel free to fork the repository and submit a pull request!
This project is licensed under the MIT License.