fix sa hook
This commit is contained in:
parent
2195c0a29c
commit
210a2109a7
@ -851,7 +851,6 @@ func (self *NNTPDaemon) poll(worker int) {
|
||||
if hdr == nil {
|
||||
log.Println("worker", worker, "failed to load", msgid)
|
||||
} else {
|
||||
msgid := getMessageID(hdr)
|
||||
log.Println("worker", worker, "got", msgid)
|
||||
rollover := 100
|
||||
group := hdr.Get("Newsgroups", "")
|
||||
|
@ -728,6 +728,7 @@ func parseRange(str string) (lo, hi int64) {
|
||||
func storeMessage(daemon *NNTPDaemon, hdr textproto.MIMEHeader, body io.Reader) (err error) {
|
||||
var f io.WriteCloser
|
||||
msgid := getMessageID(hdr)
|
||||
log.Println("store", msgid)
|
||||
if msgid == "" {
|
||||
// drop, invalid header
|
||||
log.Println("dropping message with invalid mime header, no message-id")
|
||||
|
Reference in New Issue
Block a user