durr
This commit is contained in:
parent
c06b503efd
commit
bf357a3461
@ -361,7 +361,11 @@ func (self *nntpArticle) Headers() ArticleHeaders {
|
||||
}
|
||||
|
||||
func (self *nntpArticle) MIMEHeader() textproto.MIMEHeader {
|
||||
return textproto.MIMEHeader(self.headers)
|
||||
h := make(textproto.MIMEHeader)
|
||||
for k, v := range self.headers {
|
||||
h[k] = v
|
||||
}
|
||||
return h
|
||||
}
|
||||
|
||||
func (self *nntpArticle) AppendPath(part string) NNTPMessage {
|
||||
|
@ -453,7 +453,7 @@ func (self *articleStore) ProcessMessage(wr io.Writer, msg io.Reader, spamfilter
|
||||
pr_in.Close()
|
||||
}()
|
||||
go func() {
|
||||
var buff [65636]byte
|
||||
var buff [65536]byte
|
||||
_, e := io.CopyBuffer(pw_in, msg, buff[:])
|
||||
if e != nil {
|
||||
log.Println("failed to read entire message", e)
|
||||
|
Reference in New Issue
Block a user