Archived
1
0

fix sa hook

This commit is contained in:
Jeff Becker 2017-11-07 14:05:19 -05:00
parent c6dab2125e
commit d89a811611
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -35,7 +35,7 @@ func (sp *SpamFilter) Rewrite(msg io.Reader, out io.WriteCloser) error {
if err != nil { if err != nil {
return err return err
} }
io.WriteString(c, "REPORT SPAMC/1.5\r\n") io.WriteString(c, "PROCESS SPAMC/1.5\r\n")
io.CopyBuffer(c, msg, buff[:]) io.CopyBuffer(c, msg, buff[:])
c.CloseWrite() c.CloseWrite()
_, err = io.CopyBuffer(out, c, buff[:]) _, err = io.CopyBuffer(out, c, buff[:])