Remove the email pipeline
The mailbox sync (Microsoft Graph and IMAP), its Claude classifier, the /email routes and the Settings page's email section are taken out while the pipeline is unused. The last commit with it is tagged email-pipeline-last; reverting this commit brings it back. The status rules the capture path shares (statusOrder, StatusAdvances, NormalizeStatus) move to job_status.go with their tests. ProcessedEmail stays in the migration, marked dormant, so its history survives for a restored pipeline. golang.org/x/oauth2 is no longer needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -44,7 +44,8 @@ const (
|
||||
maxScoresPerRun = 40
|
||||
|
||||
// maxScoreAttempts caps how many times a lead Claude failed to score is
|
||||
// retried, for the same reason as maxEmailAttempts.
|
||||
// retried, so a posting Claude can never score stops costing a call on
|
||||
// every run.
|
||||
maxScoreAttempts = 3
|
||||
|
||||
// maxRunDuration bounds a whole run. Generous: forty scores at a worst
|
||||
@@ -88,8 +89,8 @@ type JobLeadService struct {
|
||||
// allow for a multi-megabyte board arriving over the Pi's connection.
|
||||
HTTPClient *http.Client
|
||||
|
||||
// mu is used with TryLock, as in EmailSyncService: a run requested while
|
||||
// another is going is refused, not queued.
|
||||
// mu is used with TryLock: a run requested while another is going is
|
||||
// refused, not queued.
|
||||
mu sync.Mutex
|
||||
|
||||
// statusMu guards the three fields below, which the leads page polls
|
||||
@@ -132,7 +133,7 @@ func (s *JobLeadService) Status() LeadSyncStatus {
|
||||
// is meant to be run in its own goroutine and returns straight away when
|
||||
// JOB_LEADS_ENABLED is not "true".
|
||||
//
|
||||
// Unlike the email scheduler it does not run at start-up: every deploy
|
||||
// It does not run at start-up: every deploy
|
||||
// restarts the backend, and a deploy should not spend forty Claude calls. The
|
||||
// first run is one interval in, or whenever "Check now" is pressed — which
|
||||
// works whether or not the scheduler is enabled.
|
||||
|
||||
Reference in New Issue
Block a user