Rails application for managing Gmail automation rules.
- Rules stored in PostgreSQL using JSONB (
conditions+actions). - Priority-ordered list (
1is highest) with drag-and-drop reordering. index,show,edit,updateviews.Save and apply ruleaction that immediately runs one rule against inbox-labeled messages.- Tailwind-powered UI with Inertia + React on the rules index page.
Use Ruby 3.4+.
Copy .env.example to .env and adjust values.
cp .env.example .envEnvironment values are loaded automatically with bkeepers/dotenv.
Set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in .env using a Google OAuth Web application client configured for this app's browser callback flow. See docs/oauth_setup.md.
See docs/oauth_setup.md.
bundle exec rails db:create
bundle exec rails db:migratenpm installnpm run buildgem install foreman
bin/devbundle exec rails server -p 3000bundle exec ruby import_from_mail_app.rb ../SyncedRules.plist