From 41a85416603dfc5a5dcf6e7d7a48f56aad4af57c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 8 Aug 2017 18:48:07 -0400 Subject: [PATCH] add expire tool --- contrib/backends/srndv2/src/srnd/store.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/store.go b/contrib/backends/srndv2/src/srnd/store.go index 2686338..8491f76 100644 --- a/contrib/backends/srndv2/src/srnd/store.go +++ b/contrib/backends/srndv2/src/srnd/store.go @@ -428,7 +428,9 @@ func (self *articleStore) getMIMEHeader(messageID string) (hdr textproto.MIMEHea var msg *mail.Message msg, err = readMIMEHeader(r) f.Close() - hdr = textproto.MIMEHeader(msg.Header) + if msg != nil { + hdr = textproto.MIMEHeader(msg.Header) + } } if err != nil { log.Println("failed to load article headers for", messageID, err)