Archived
1
0
This commit is contained in:
Jeff Becker 2017-11-06 18:22:51 -05:00
parent c06b503efd
commit bf357a3461
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 6 additions and 2 deletions

View File

@ -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 {

View File

@ -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)