diff --git a/contrib/backends/srndv2/src/srnd/message.go b/contrib/backends/srndv2/src/srnd/message.go index ef92378..948caca 100644 --- a/contrib/backends/srndv2/src/srnd/message.go +++ b/contrib/backends/srndv2/src/srnd/message.go @@ -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 { diff --git a/contrib/backends/srndv2/src/srnd/store.go b/contrib/backends/srndv2/src/srnd/store.go index 500a1dc..6ebd484 100644 --- a/contrib/backends/srndv2/src/srnd/store.go +++ b/contrib/backends/srndv2/src/srnd/store.go @@ -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)