Outsourced lmtp confirmation msg parsing to a function