Commit 2849731e authored by Rob Swindell's avatar Rob Swindell

Better error detection in msgtoqwk()

Have msgtoqwk() return a negative number upon error (e.g. blank message, failed to read to body text), which means *no* message header was written to the messages.dat file, so don't increment the record (block) counter used to create the index (NDX) file.

If msgtoqwk() returns 0, that means that a header was written, but no body text (e.g. a vote message) and that is different than an error.
parent 085af70c
Pipeline #331 passed with stage
in 18 minutes and 6 seconds