Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 3.24 KB

File metadata and controls

30 lines (17 loc) · 3.24 KB

Based on the documentation provided, FilterFlow currently uses three specific scopes: gmail.settings.basic, gmail.labels, and gmail.modify.

Because you already have these powerful permissions approved and integrated, you can add several high-value features without requiring users to consent to new scopes. Here are some examples of additional features you could build:

1. Features leveraging gmail.modify

This scope allows reading, searching, and modifying messages (like archiving, trashing, or changing labels).

  • VIP "Rescue" Feature: Sometimes aggressive filters accidentally bury important emails. You could build a tool that searches the user's archives/trash for emails from designated "VIP" contacts, removes the archive/trash labels, pushes them back to the inbox, and auto-adjusts existing filters to exclude that sender.

2. Features leveraging gmail.settings.basic

This scope allows managing filters, but it also allows managing forwarding addresses, aliases, signatures, and vacation auto-replies.

  • Filter Import / Export (Filter "Packs"): Since you can read and create filters, you could add an "Export" and "Import" button. Users could share their favorite filter setups as JSON files. You could even provide pre-built templates (e.g., "The Zero Inbox Pack," "The Freelancer Tax Organizer") that users can apply with one click.
  • Filter Version History (Undo): Because your app heavily modifies filters (deleting and recreating them for drag-and-drop reordering), accidental deletion is a risk. You could store a rolling log of deleted filters in chrome.storage.sync. If a user regrets a change, an "Undo" button simply pushes the old filter criteria back to the Gmail API.
  • Vacation Responder & Auto-Reply Manager: Since this scope covers the vacation responder, you could add a tab to schedule OOO (Out of Office) messages. You could pair this with filters, allowing users to say, "If I receive an email from X while my Vacation Responder is active, forward it to my coworker."

3. Features leveraging gmail.labels

This scope allows creating, reading, updating, and deleting labels.

  • Visual Label Manager: Modify the label manager to allow users to drag-and-drop labels to nest them (creating sub-labels)
  • Orphaned Label Cleanup: You can compare the user's active labels against the labels currently used in their filters and message history. The app could flag "Ghost Labels" (labels that exist but have no messages attached to them and aren't used in any filters) and offer a 1-click cleanup to delete them.
  • Smart Label Merging: Just like your current "Smart Filter Analysis" finds duplicate filters, you could find duplicate labels (e.g., a user has both a "Receipts" and an "Invoices" label). With one click, the app could merge them by updating all historical messages to the new label, updating all filters to point to the new label, and deleting the old label.

4. Cross-Scope/Local Enhancements

  • Filter Analytics Dashboard: By combining gmail.modify (to run searches) and gmail.settings.basic, you could add a dashboard showing which filters are the "most active" (catching the most emails) and which filters haven't caught an email in over 6 months, prompting the user to delete unused ones.