Refactor pipe the stream to the mailparser