Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Soft bounce counts are always zero

Aperta
#322 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start in services/email/reputation/evaluation.py at compute_org_reputation and services/email/reputation/charts.py at build_reputation_chart, then trace deliver_via_mx_hosts, refusal_details, and record_bounce in services/email/msa/tasks.py. Confirm which transmission rows represent 4xx refusals and how the chart consumes them. Done means the soft-bounce display accurately reflects the chosen behavior, or the nonfunctional series is removed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug real

The soft bounce count is always zero. The reputation chart therefore shows a flat line, even when a domain collects many 4xx refusals.

compute_org_reputation and build_reputation_chart classify soft bounces as transmission rows with status=BOUNCED and a code below 500:

soft_bounces = transmissions.filter(code__lt_500).count()

A 4xx refusal never sets BOUNCED. The delivery walk records a temporary refusal as Transmission.Status.FAILED, with the code and the reason. Only a permanent rejection calls record_bounce, and that call writes BOUNCED. The soft bounce series is therefore always zero, by construction. The "Soft bounces" line in the reputation chart never moves, however many 4xx refusals a domain collects.

Evidence:

  • services/email/reputation/evaluation.py: compute_org_reputation
  • services/email/reputation/charts.py: build_reputation_chart
  • services/email/msa/tasks.py: deliver_via_mx_hosts, refusal_details, record_bounce

Two directions are possible: read 4xx refusals from the rows that actually record them, or remove the soft bounce series as decoration. Soft bounces are display-only today. No threshold uses them.

Found during the sandbox-credentials change (#259). This fault is older than that change.

Lingua principale
Python
Stelle
4
Fork
0
Merge medio
2h 40m
PR unite (30g)
163

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codingjoe/relay

Tutte le issue di codingjoe/relay

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.