all repos — honk @ 06bb4cda6cd19b14bcad2cc9f29e8fb96fc477c9

my fork of honk

speed up failure for no boxes
Ted Unangst tedu@tedunangst.com
Wed, 28 Feb 2024 02:16:37 -0500
commit

06bb4cda6cd19b14bcad2cc9f29e8fb96fc477c9

parent

326db5958335069ddc1d7ae8e30ac6c3a7f5f1f9

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M deliverator.godeliverator.go

@@ -61,10 +61,12 @@ default:

} } +const nearlyDead = 8 + func lethaldose(err error) int64 { str := err.Error() if strings.Contains(str, "no such host") { - return 8 + return nearlyDead } return 0 }

@@ -140,6 +142,9 @@ } else {

box, ok := boxofboxes.Get(rcpt) if !ok { ilog.Printf("failed getting inbox for %s", rcpt) + if doover.Tries < nearlyDead { + doover.Tries = nearlyDead + } sayitagain(doover) return }