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" "errors"
"fmt" "fmt"
"io" "io"
"log"
"net" "net"
"os/user" "os/user"
) )
@ -52,8 +53,8 @@ func (sp *SpamFilter) Rewrite(msg io.Reader, out io.WriteCloser) error {
if err != nil { if err != nil {
return err return err
} }
log.Println("SpamFilter:", l)
if l == "\n" { if l == "\n" {
r.ReadString(10)
_, err = io.CopyBuffer(out, r, buff[:]) _, err = io.CopyBuffer(out, r, buff[:])
c.Close() c.Close()
out.Close() out.Close()