levblanc / SumMail

Summize your inbox with Summail, a script that summarizes your latest email using OpenAI's language model in just a few clicks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“§ SumMail

SumMail is a Python script that summarizes your latest email using OpenAI's language model. With just a few clicks, SumMail distills the content of an email into a compact and easy-to-read format.

πŸš€ Quick Start

To get started, you'll need to:

  • Clone this repository to your local machine.
  • Install the required Python libraries using pip install -r requirements.txt.
  • Set your email account credentials and OpenAI API key in a .env file.
  • Run the main.py script.
  • Once the script runs successfully, it will print the subject line of your latest email and a bulleted summary of its content.

πŸ“© Email Setup

SumMail works with any email account that uses IMAP. To use SumMail, you'll need to set up the following environment variables:

IMAP_SERVER: the IMAP server address for your email provider.
IMAP_USERNAME: your email address.
IMAP_PASSWORD: your email password.
SENDER_EMAIL: the email address of the sender you want to summarize.

πŸ”‘ OpenAI API Setup

SumMail uses OpenAI's API to summarize your email content. To use SumMail, you'll need to set up an API key here and add it to your .env file as OPENAI_API_KEY.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • This script was inspired by the OpenAI API and the Python email library.
  • Special thanks to the developers who created these tools and made SumMail possible.

Do you like this project?

Buy Me A Coffee

About

Summize your inbox with Summail, a script that summarizes your latest email using OpenAI's language model in just a few clicks.

License:MIT License


Languages

Language:Python 98.1%Language:Shell 1.9%