rails-mailbox

Installation
SKILL.md

Rails Mailbox

Routing Inbound Emails

  • Define all routes in app/mailboxes/application_mailbox.rb using the routing DSL
  • Prefer scoped routing via sub-addressing (+tag) to simplify mailbox matching
  • Use descriptive class names matching route targets (e.g., SupportMailbox, BillingMailbox)
  • Never create a mailbox class without a corresponding route

Mailbox Class Structure

  • Each mailbox inherits from ApplicationMailbox
  • Implement the receive method to extract data from the inbound mail object
  • Avoid side effects in parsing logic; keep extraction and persistence separate
  • Always authenticate or verify the sender before performing sensitive actions

Parsing and Sanitization

Installs
2
First Seen
May 8, 2026
rails-mailbox — gierd-inc/dev-skills