Skip to content

An gmail assistant that filters, summarises, and notifies you of important emails

License

Notifications You must be signed in to change notification settings

HZloto/mail-buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Buddy Logo

Incoming emails are often overwhelming and rarely important.
Keep your inbox clutter-free and stay focused with smart email filtering, summarization and notification.

Features · Getting Started · Customization · Contributing


Disclaimer: mail buddy only works with gmail for now. feel free to add support for your own email provider.

Features

  • Smart Filtering
    Automatically identifies and prioritizes emails based on their content and importance, helping you focus on what matters.

  • Summarization
    Summarizes essential messages so you can quickly get the gist without diving into details.

  • Real-Time Notifications
    Alerts you to important emails instantly, keeping you in the loop on the go.

  • Customizable
    Set filters to exclude distracting promotional or low-priority emails.

Notification

Getting Started

These instructions will help you set up Mail Buddy on your local machine.

Prerequisites

To run Mail Buddy, you’ll need:

  • Python 3.7+
  • Google Cloud Credentials for Gmail API access
  • OpenAI API Key for AI-driven summarization

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/mail-buddy.git
    cd mail-buddy
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up environment variables: Create a .env file with your API keys:

    OPENAI_API_KEY=your_openai_api_key
    
  4. Configure Google API:

    • Follow Google's guide to set up the Gmail API and download your credentials.json file.
    • Save credentials.json in the project root directory.
  5. Configure ntfy:

    • Follow ntfy's docs to get the app on your phone and create a channel to use for your own emails
    • Make sure to password protect it if any of the data is sensitive .
    • Replace the NTFY_TOPIC_URL variable in the main.py script (line 37) to your channel url (eg https://ntfy.sh/your-name-mail-buddy)

Usage

To start Mail Buddy, run:

python main.py

The assistant will monitor new emails, categorize and summarize messages, and send notifications for priority emails. By default, it checks your inbox every hour.

Customization

Adjust notification settings, filtering rules, and scheduling within main.py to fit your needs. We're currently working on a version of the code hosted directly on a server, coming soon!

Contributing

We welcome contributions! Submit a pull request or open an issue to suggest improvements.


With Mail Buddy, take control of your inbox, focus on the essentials, and minimize distractions.


About

An gmail assistant that filters, summarises, and notifies you of important emails

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages