Commit bca93cee authored by Jeremy Bicha's avatar Jeremy Bicha

New upstream version 3.32.0

parents b8c42424 684ff55b
......@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.1)
cmake_policy(VERSION 3.1)
project(evolution-ews
VERSION 3.31.90
VERSION 3.32.0
LANGUAGES C)
set(PROJECT_BUGREPORT "https://gitlab.gnome.org/GNOME/evolution-ews/issues/")
......
......@@ -4,4 +4,4 @@
Get a clone of git repository and list changes with 'git log' there,
$ git clone https://gitlab.gnome.org/GNOME/evolution-ews.git
or browse changes online at
https://gitlab.gnome.org/GNOME/evolution-ews/commits/master
https://gitlab.gnome.org/GNOME/evolution-ews/commits/gnome-3-32
Evolution-EWS 3.32.0 2019-03-11
-------------------------------
Translations:
Nathan Follens (nl)
Evolution-EWS 3.31.91 2019-02-18
--------------------------------
Miscellaneous:
Implement 'exists' ESExp function in the book backend (Milan Crha)
Evolution-EWS 3.31.90 2019-02-04
--------------------------------
......
This diff is collapsed.
......@@ -2768,6 +2768,20 @@ ebb_ews_func_beginswith (struct _ESExp *f,
return r;
}
static ESExpResult *
ebb_ews_func_exists (struct _ESExp *f,
gint argc,
struct _ESExpResult **argv,
gpointer data)
{
ESExpResult *r;
r = e_sexp_result_new (f, ESEXP_RES_BOOL);
r->value.boolean = FALSE;
return r;
}
static struct {
const gchar *name;
ESExpFunc *func;
......@@ -2780,6 +2794,7 @@ static struct {
{ "is", ebb_ews_func_is, 0},
{ "beginswith", ebb_ews_func_beginswith, 0},
{ "endswith", ebb_ews_func_endswith, 0},
{ "exists", ebb_ews_func_exists, 0}
};
/* FIXME build a complete filter from the query that can be used by find_items */
......@@ -2787,7 +2802,6 @@ static gboolean
ebb_ews_build_restriction (const gchar *query,
gchar **auto_comp_str)
{
ESExpResult *r;
ESExp *sexp;
EBookBackendEwsSExpData *sdata;
gboolean autocompletion = FALSE;
......@@ -2807,18 +2821,25 @@ ebb_ews_build_restriction (const gchar *query,
}
e_sexp_input_text (sexp, query, strlen (query));
e_sexp_parse (sexp);
if (e_sexp_parse (sexp) == -1) {
const gchar *errstr = e_sexp_get_error (sexp);
r = e_sexp_eval (sexp);
if (r) {
autocompletion = sdata->is_autocompletion;
if (autocompletion)
*auto_comp_str = sdata->auto_comp_str;
else
g_free (sdata->auto_comp_str);
g_printerr ("%s: Failed to parse query '%s': %s\n", G_STRFUNC, query, errstr ? errstr : "Unknown error");
} else {
ESExpResult *r;
r = e_sexp_eval (sexp);
if (r) {
autocompletion = sdata->is_autocompletion;
if (autocompletion)
*auto_comp_str = sdata->auto_comp_str;
else
g_free (sdata->auto_comp_str);
}
e_sexp_result_free (sexp, r);
}
e_sexp_result_free (sexp, r);
g_object_unref (sexp);
g_free (sdata);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment