Commit 27294966 authored by rswindell's avatar rswindell
Browse files

Log error if msgbase.save_msg() fails.

parent c467b467
......@@ -165,9 +165,12 @@ for(i in area) {
hdr.from_net_type = NET_INTERNET;
/* Copy to message base */
mailbase.save_msg(hdr,body);
printf("Exported message %lu to list server: %s\r\n",ptr,listserv);
exported++;
if(mailbase.save_msg(hdr,body)) {
printf("Exported message %lu to list server: %s\r\n",ptr,listserv);
exported++;
} else
printf("ERROR %s exporting message %lu to list server: %s\r\n"
,msgbase.error, ptr, listserv);
}
}
if(ptr > msgbase.last_msg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment