Address review comments about extract_message_id.
Store linkid from inbound messages and send it in replies, if it exists.