From 58cc8c2365e33615090b6e498cf883d6cceb2900 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 7 Nov 2017 14:32:37 -0500 Subject: [PATCH] fix sa hook --- contrib/backends/srndv2/src/srnd/spam.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/spam.go b/contrib/backends/srndv2/src/srnd/spam.go index 30a6d5b..70f47c0 100644 --- a/contrib/backends/srndv2/src/srnd/spam.go +++ b/contrib/backends/srndv2/src/srnd/spam.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "io" + "log" "net" "os/user" ) @@ -52,8 +53,8 @@ func (sp *SpamFilter) Rewrite(msg io.Reader, out io.WriteCloser) error { if err != nil { return err } + log.Println("SpamFilter:", l) if l == "\n" { - r.ReadString(10) _, err = io.CopyBuffer(out, r, buff[:]) c.Close() out.Close()