get rootiest post
This commit is contained in:
parent
2f5f84da4b
commit
ff8c3e915a
@ -1240,10 +1240,14 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string
|
|||||||
log.Println(self.name, "got reply to", reference, "but we don't have it")
|
log.Println(self.name, "got reply to", reference, "but we don't have it")
|
||||||
go daemon.askForArticle(reference)
|
go daemon.askForArticle(reference)
|
||||||
} else {
|
} else {
|
||||||
h := daemon.store.GetMIMEHeader(reference)
|
// get rootiest post
|
||||||
if strings.Trim(h.Get("References"), " ") == "" {
|
ref := reference
|
||||||
hdr.Set("References", getMessageID(h))
|
var h textproto.MIMEHeader
|
||||||
|
for ref != "" {
|
||||||
|
h = daemon.store.GetMIMEHeader(ref)
|
||||||
|
ref = strings.Trim(h.Get("References"), " ")
|
||||||
}
|
}
|
||||||
|
hdr.Set("References", getMessageID(h))
|
||||||
}
|
}
|
||||||
} else if reference != "" {
|
} else if reference != "" {
|
||||||
// bad message id
|
// bad message id
|
||||||
|
Reference in New Issue
Block a user