View | Details | Raw Unified
Collapse All | Expand All

(-) addressbook/e-book-backend-exchange.c (-4 / +16 lines)
 Lines 1766-1782   e_book_backend_exchange_build_restrictio Link Here 
	r = e_sexp_eval (sexp);
	r = e_sexp_eval (sexp);
	if (r && r->type == ESEXP_RES_UNDEFINED)
	if (r && r->type == ESEXP_RES_UNDEFINED)
		rn = (E2kRestriction *)r->value.string;
		rn = (E2kRestriction *)r->value.string;
	else {
	else
		g_warning ("conversion to exchange restriction failed");
		rn = NULL;
		rn = NULL;
	}
	if (!rn)
		g_warning ("conversion to exchange restriction failed, query: '%s'", query ? query : "[null]");
	e_sexp_result_free (sexp, r);
	e_sexp_result_free (sexp, r);
	e_sexp_unref (sexp);
	e_sexp_unref (sexp);
	if (base_rn) {
	if (base_rn && rn) {
		e2k_restriction_ref (base_rn);
		e2k_restriction_ref (base_rn);
		rn = e2k_restriction_andv (rn, base_rn, NULL);
		rn = e2k_restriction_andv (rn, base_rn, NULL);
		if (!rn)
			g_warning ("failed to concat with a base_rn, query: '%s'", query ? query : "[null]");
	}
	}
	return rn;
	return rn;
 Lines 1890-1898   e_book_backend_exchange_get_contact_list Link Here 
		rn = e_book_backend_exchange_build_restriction (query,
		rn = e_book_backend_exchange_build_restriction (query,
								bepriv->base_rn);
								bepriv->base_rn);
		if (!rn)
			return GNOME_Evolution_Addressbook_OtherError;
		iter = e_folder_exchange_search_start (bepriv->folder, NULL,
		iter = e_folder_exchange_search_start (bepriv->folder, NULL,
					       field_names, n_field_names,
					       field_names, n_field_names,
					       rn, NULL, TRUE);
					       rn, NULL, TRUE);
		e2k_restriction_unref (rn);
		e2k_restriction_unref (rn);
		*contacts = NULL;
		*contacts = NULL;
 Lines 1986-1991   e_book_backend_exchange_start_book_view Link Here 
		rn = e_book_backend_exchange_build_restriction (query,
		rn = e_book_backend_exchange_build_restriction (query,
							bepriv->base_rn);
							bepriv->base_rn);
		if (!rn)
			return;
		iter = e_folder_exchange_search_start (bepriv->folder, NULL,
		iter = e_folder_exchange_search_start (bepriv->folder, NULL,
					       field_names, n_field_names,
					       field_names, n_field_names,
					       rn, NULL, TRUE);
					       rn, NULL, TRUE);