fix sa hook
This commit is contained in:
parent
8cd93abe4f
commit
58cc8c2365
@ -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()
|
||||
|
Reference in New Issue
Block a user