all repos — honk @ 784f93efdd9bbd18894a5a7f419818fcefc8ce48

my fork of honk

let's just say http 400 is okie dokie
Ted Unangst tedu@tedunangst.com
Thu, 27 Jul 2023 20:51:19 -0400
commit

784f93efdd9bbd18894a5a7f419818fcefc8ce48

parent

1e8975efecd83676e93cd1faa8217049ab80c370

1 files changed, 12 insertions(+), 0 deletions(-)

jump to
M deliverator.godeliverator.go

@@ -69,6 +69,14 @@ }

return 0 } +func letitslide(err error) bool { + str := err.Error() + if strings.Contains(str, "http post status: 400") { + return true + } + return false +} + var dqmtx sync.Mutex func delinquent(userid int64, rcpt string, msg []byte) bool {

@@ -143,6 +151,10 @@ if err != nil {

ilog.Printf("failed to post json to %s: %s", inbox, err) if t := lethaldose(err); t > doover.Tries { doover.Tries = t + } + if letitslide(err) { + dlog.Printf("whatever myever %s", inbox) + continue } doover.Msgs = doover.Msgs[i:] sayitagain(doover)