Archived
1
0

fix sa hook

This commit is contained in:
Jeff Becker 2017-11-07 14:32:37 -05:00
parent 8cd93abe4f
commit 58cc8c2365
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

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