Retrieves the unique message id for a given message number.