def import_identities(self, parser, matching=None, match_new=False,
                          no_strict_matching=False,
                          reset=False, verbose=False):
        matcher = None
        if matching:
            strict = not no_strict_matching
            try:
                blacklist = api.blacklist(self.db)
                matcher = create_identity_matcher(matching, blacklist, strict=strict)
            except MatcherNotSupportedError as e:
                self.error(str(e))
                return e.code
        uidentities = parser.identities
        try:
            self.__load_unique_identities(uidentities, matcher, match_new,
                                          reset, verbose)
        except LoadError as e:
            self.error(str(e))
            return e.code
        return CMD_SUCCESS