From 210a2109a720cb4f0297b46ab0ae72d058ccacd8 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 7 Nov 2017 14:19:47 -0500 Subject: [PATCH] fix sa hook --- contrib/backends/srndv2/src/srnd/daemon.go | 1 - contrib/backends/srndv2/src/srnd/util.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/daemon.go b/contrib/backends/srndv2/src/srnd/daemon.go index 06c65f6..149bc79 100644 --- a/contrib/backends/srndv2/src/srnd/daemon.go +++ b/contrib/backends/srndv2/src/srnd/daemon.go @@ -851,7 +851,6 @@ func (self *NNTPDaemon) poll(worker int) { if hdr == nil { log.Println("worker", worker, "failed to load", msgid) } else { - msgid := getMessageID(hdr) log.Println("worker", worker, "got", msgid) rollover := 100 group := hdr.Get("Newsgroups", "") diff --git a/contrib/backends/srndv2/src/srnd/util.go b/contrib/backends/srndv2/src/srnd/util.go index 74319c4..5b9037d 100644 --- a/contrib/backends/srndv2/src/srnd/util.go +++ b/contrib/backends/srndv2/src/srnd/util.go @@ -728,6 +728,7 @@ func parseRange(str string) (lo, hi int64) { func storeMessage(daemon *NNTPDaemon, hdr textproto.MIMEHeader, body io.Reader) (err error) { var f io.WriteCloser msgid := getMessageID(hdr) + log.Println("store", msgid) if msgid == "" { // drop, invalid header log.Println("dropping message with invalid mime header, no message-id")