Skip to content

Instantly share code, notes, and snippets.

@Venkateswararaobhimasingi
Created November 20, 2025 17:33
Show Gist options
  • Select an option

  • Save Venkateswararaobhimasingi/2f04e80e0b78b4ef80d450013acfa275 to your computer and use it in GitHub Desktop.

Select an option

Save Venkateswararaobhimasingi/2f04e80e0b78b4ef80d450013acfa275 to your computer and use it in GitHub Desktop.

ForgotYourEmail – Smart Email Assistant (Android + Django)

ForgotYourEmail is an intelligent email-management system that automatically fetches, classifies, and processes Gmail emails using machine learning. It provides actionable notifications, AI-generated auto-replies, scheduling features, and task management β€” all integrated seamlessly between Android, Django, Gmail API, and Firebase.

πŸš€ Initial Version

πŸ“Œ Initial MVP Model Released: 14 December 2025

πŸ“± Features

  1. Gmail Email Sync

Sign in using Firebase Authentication (Google Sign-In)

Securely fetch unread Gmail emails using the Gmail API

Sync only emails after the user’s join date

  1. Email Classification

Emails are classified into 4 categories:

Auto Reply

Schedule

To-Do

Ignore

Classification is done via: A Django backend that calls the deployed ML API

  1. Actionable Push Notifications

Uses Firebase Cloud Messaging (FCM HTTP v1 API) to deliver notifications with buttons:

Auto Reply

Schedule

To-Do

Ignore

Handled by a BroadcastReceiver in Android.

  1. Auto Reply Generation

Fetches complete email (sender, subject, body)

Sends details to backend

Django fetches email from Gmail + generates reply via Gemini

User can: Edit subject & content

Regenerate

Send reply directly from this app

  1. To-Do Functionality

Each task includes:

Task title (default = email subject)

User-defined content

Status: Pending / Done

Options: Edit, Delete, Mark as Done

  1. Scheduling

Allows scheduling events based on email content

Django updates events on Google Calendar

  1. Automatic Email Update

After user performs:

Auto Reply

Schedule

To-Do

Ignore

β†’ Corresponding Gmail email is marked as read.

πŸ— Architecture Overview Android (Frontend)

Kotlin

Firebase Auth

Gmail API

FCM Notifications

Activities:

AutoReplyActivity

ScheduleActivity

TodoListActivity

TestClassifierActivity

Backend (Django)

Stores:

User Firebase UID

Email

Google Access/Refresh Tokens

FCM Token

Join date

Login flag

Handles:

Email sync

Classification

Auto-reply logic

Push notifications

Scheduling

πŸ§ͺ Tech Stack Mobile

Kotlin (Android)

Firebase Authentication

FCM HTTP v1 API

Gmail API

TFLite (local testing)

Backend

Django / Django REST Framework

Google OAuth APIs

Python ML API integration

CRON / Background tasks

βœ”οΈ Current Status

MVP Released on 14 Dec 2025

Major features implemented (Email sync, classification, actions, AI replies)

Stable for testing and user feedback

Venkateswara Rao Bhimasingi – Developer (Android + Django)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment