Archived
1
0
This commit is contained in:
Jeff Becker 2018-11-06 16:34:55 -05:00
parent c89c06e15d
commit ad07b95d96
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -49,7 +49,7 @@ func (sp *SpamFilter) MarkSpam(msg io.Reader) (err error) {
return
}
defer conn.Close()
fmt.Fprintf(conn, "TELL SPAMC/1.5\r\nUser: %s\r\nMessage-class: spam\r\nSet: local,remote\r\n\r\n", u.Username)
fmt.Fprintf(conn, "TELL SPAMC/1.5\r\nUser: %s\r\nMessage-class: spam\r\nSet: local\r\n\r\n", u.Username)
io.CopyBuffer(conn, msg, buf[:])
conn.CloseWrite()
r := bufio.NewReader(conn)