From a07f4a30d601f2ba5de5f4e69c5dd0cdd78ba6e1 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 7 Nov 2017 14:27:52 -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 673a515..79be60e 100644 --- a/contrib/backends/srndv2/src/srnd/spam.go +++ b/contrib/backends/srndv2/src/srnd/spam.go @@ -51,7 +51,8 @@ func (sp *SpamFilter) Rewrite(msg io.Reader, out io.WriteCloser) error { if err != nil { return err } - if len(l) == 1 { + if l == "\n" { + r.ReadString(10) break } }