From bc236ce1de2e132aab9c9a328f93c80a6c249677 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 20 Jan 2020 22:37:37 +0000 Subject: [PATCH] Log any error reading message header when exporting NetMail (from SMB to *.msg). --- src/sbbs3/sbbsecho.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/sbbsecho.c b/src/sbbs3/sbbsecho.c index 8b563dfc91..f84b3281f1 100644 --- a/src/sbbs3/sbbsecho.c +++ b/src/sbbs3/sbbsecho.c @@ -5173,8 +5173,11 @@ int export_netmail(void) if((msg.idx.attr&MSG_DELETE) || msg.idx.to != 0) continue; - if(smb_getmsghdr(email, &msg) != SMB_SUCCESS) + if((i = smb_getmsghdr(email, &msg)) != SMB_SUCCESS) { + lprintf(LOG_ERR,"ERROR %d (%s) line %d reading msg header #%u from %s" + ,i, email->last_error, __LINE__, msg.idx.number, email->file); continue; + } if(msg.to_ext != 0 || msg.to_net.type != NET_FIDO) continue; -- GitLab