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 {
|
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", "")
|
||||||
|
@ -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")
|
||||||
|
Reference in New Issue
Block a user