Sanitized mirror from private repository - 2026-04-05 13:06:07 UTC
This commit is contained in:
58
scripts/gmail-organizer/config.yaml
Normal file
58
scripts/gmail-organizer/config.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
# Gmail Organizer Configuration
|
||||
# Copy this to config.local.yaml and fill in your credentials
|
||||
|
||||
gmail:
|
||||
email: "your.email@gmail.com"
|
||||
app_password: "REDACTED_PASSWORD" xxxx xxxx xxxx" # 16-char app password from Google # pragma: allowlist secret
|
||||
|
||||
ollama:
|
||||
url: "http://192.168.0.145:31434"
|
||||
model: "qwen3-coder:latest"
|
||||
|
||||
# Categories and their Gmail labels
|
||||
# The LLM will classify each email into one of these
|
||||
categories:
|
||||
receipts:
|
||||
label: "AutoOrg/Receipts"
|
||||
description: "Purchase confirmations, invoices, payment receipts, order updates"
|
||||
archive: false # keep in inbox — you may need to act on these
|
||||
newsletters:
|
||||
label: "AutoOrg/Newsletters"
|
||||
description: "Mailing lists, digests, blog updates, promotional content from subscriptions"
|
||||
archive: true # auto-archive out of inbox
|
||||
work:
|
||||
label: "AutoOrg/Work"
|
||||
description: "Professional correspondence, meeting invites, project updates, work tools"
|
||||
archive: false
|
||||
accounts:
|
||||
label: "AutoOrg/Accounts"
|
||||
description: "Security alerts, password resets, 2FA notifications, account verification, login alerts from services"
|
||||
archive: true # auto-archive — check label if needed
|
||||
spam:
|
||||
label: "AutoOrg/Spam"
|
||||
description: "Unsolicited marketing, phishing attempts, junk mail that bypassed filters"
|
||||
archive: true # auto-archive junk
|
||||
personal:
|
||||
label: "AutoOrg/Personal"
|
||||
description: "Friends, family, personal accounts, non-work non-commercial emails"
|
||||
archive: false
|
||||
|
||||
# Processing settings
|
||||
processing:
|
||||
batch_size: 50 # Emails per run
|
||||
max_body_chars: 2000 # Truncate body to save tokens
|
||||
skip_already_labeled: true
|
||||
dry_run: false # Set true to preview without applying labels
|
||||
process_read: true # Also process already-read emails
|
||||
mailbox: "INBOX" # IMAP mailbox to process
|
||||
confidence_threshold: true # Skip emails where LLM confidence is "low"
|
||||
sender_cache_min_hits: 3 # After N identical classifications, skip LLM for this sender
|
||||
batch_classify: false # Classify multiple emails in one LLM call (faster, less accurate)
|
||||
batch_classify_size: 5 # How many emails per batch call
|
||||
priority_star: # Categories that get starred for attention
|
||||
- accounts
|
||||
|
||||
# Notifications (optional) — ntfy URL or similar webhook
|
||||
# notifications:
|
||||
# url: "https://ntfy.sh/REDACTED_TOPIC"
|
||||
# digest: true # Send summary after each run
|
||||
Reference in New Issue
Block a user