Check if the end of a multi-line is not found

If the end of a multi-line parseable can't be found, fail gracefully by adding the unparsed lines to the inbox.
Refactor code to ease check for inbox lines
Add newline at end of inbox header to match markdown requirements