Files
warmbly/internal/tasks/content_lint.go
T
Matthew Meszaros 15ef9d4994 feat: add warmup content controls
Add warmup content generation and admin review surfaces, plus mailbox warmup appeal/status APIs.

Track warmup engagement and tampering signals so unsafe mailboxes can be handled by the warmup flow.
2026-06-03 05:05:53 +02:00

12 lines
506 B
Go

package tasks
import "github.com/warmbly/warmbly/internal/pkg/warmlint"
// lintWarmupContent rejects content that would raise the sending mailbox's own
// spam score (ALL-CAPS subjects, stacked punctuation, stacked spam triggers, a
// fabricated Re:/Fwd: on a non-reply). Shared with the offline AI generator via
// the warmlint package so static and AI content are held to the same bar.
func lintWarmupContent(subject, body string, isReply bool) error {
return warmlint.Check(subject, body, isReply)
}