Archived
1
0

fix sa hook

This commit is contained in:
Jeff Becker 2017-11-07 14:59:53 -05:00
parent a88334e985
commit 26d4f5dffb
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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