aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-utils.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c
index c440d6c165..f1c4c17782 100644
--- a/camel/providers/imap/camel-imap-utils.c
+++ b/camel/providers/imap/camel-imap-utils.c
@@ -369,9 +369,12 @@ char *
imap_translate_sexp (const char *expression)
{
struct sexp_node *root;
- char *sexp;
+ char *sexp, *exp;
- root = get_sexp_node (expression);
+ exp = g_strdup (expression);
+ strip (exp, '\n');
+ root = get_sexp_node (exp);
+ g_free (exp);
d(print_node (root, 0));
d(fprintf (stderr, "\n"));
@@ -466,8 +469,8 @@ imap_translate_sexp (const char *expression)
char *sexp;
esexp = e_sexp_new ();
-
- e_sexp_input_text (esexp, expression, strlen (expression));
+
+ e_sexp_input_text (esexp, exp, strlen (exp));
e_sexp_parse (esexp);
sexp = stresexptree (esexp->tree);