From 26d4f5dffb4db119f50b2640a36b4cdf3469283e Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 7 Nov 2017 14:59:53 -0500 Subject: [PATCH] fix sa hook --- contrib/backends/srndv2/src/srnd/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/store.go b/contrib/backends/srndv2/src/srnd/store.go index 9e0a140..bb83454 100644 --- a/contrib/backends/srndv2/src/srnd/store.go +++ b/contrib/backends/srndv2/src/srnd/store.go @@ -467,7 +467,8 @@ func (self *articleStore) ProcessMessage(wr io.Writer, msg io.Reader, spamfilter pr_out, pw_out := io.Pipe() ec := make(chan error) go func() { - ec <- self.spamd.Rewrite(pr_in, pw_out) + e := self.spamd.Rewrite(pr_in, pw_out) + ec <- e }() go func() { var buff [65536]byte