Archived
1
0

fix sa hook

This commit is contained in:
Jeff Becker 2017-11-07 14:19:47 -05:00
parent 2195c0a29c
commit 210a2109a7
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,6 @@ func (self *NNTPDaemon) poll(worker int) {
if hdr == nil { if hdr == nil {
log.Println("worker", worker, "failed to load", msgid) log.Println("worker", worker, "failed to load", msgid)
} else { } else {
msgid := getMessageID(hdr)
log.Println("worker", worker, "got", msgid) log.Println("worker", worker, "got", msgid)
rollover := 100 rollover := 100
group := hdr.Get("Newsgroups", "") group := hdr.Get("Newsgroups", "")

View File

@ -728,6 +728,7 @@ func parseRange(str string) (lo, hi int64) {
func storeMessage(daemon *NNTPDaemon, hdr textproto.MIMEHeader, body io.Reader) (err error) { func storeMessage(daemon *NNTPDaemon, hdr textproto.MIMEHeader, body io.Reader) (err error) {
var f io.WriteCloser var f io.WriteCloser
msgid := getMessageID(hdr) msgid := getMessageID(hdr)
log.Println("store", msgid)
if msgid == "" { if msgid == "" {
// drop, invalid header // drop, invalid header
log.Println("dropping message with invalid mime header, no message-id") log.Println("dropping message with invalid mime header, no message-id")