fix
This commit is contained in:
parent
57f431ffd2
commit
c89c06e15d
@ -49,7 +49,7 @@ func (sp *SpamFilter) MarkSpam(msg io.Reader) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
fmt.Fprintf(conn, "TELL SPAMC/1.5\r\nUser: %s\r\nMessage-class: spam\r\nSet: local\r\n\r\n", u.Username)
|
fmt.Fprintf(conn, "TELL SPAMC/1.5\r\nUser: %s\r\nMessage-class: spam\r\nSet: local,remote\r\n\r\n", u.Username)
|
||||||
io.CopyBuffer(conn, msg, buf[:])
|
io.CopyBuffer(conn, msg, buf[:])
|
||||||
conn.CloseWrite()
|
conn.CloseWrite()
|
||||||
r := bufio.NewReader(conn)
|
r := bufio.NewReader(conn)
|
||||||
|
Reference in New Issue
Block a user