From 52a35856a381272acd689f2fc5c16e0e4d14040f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 15 Feb 2015 17:46:19 +0000 Subject: Allow && and || in composites. --- src/libmime/expressions.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/libmime') diff --git a/src/libmime/expressions.c b/src/libmime/expressions.c index d1a5df4e9..07253a2bc 100644 --- a/src/libmime/expressions.c +++ b/src/libmime/expressions.c @@ -256,7 +256,13 @@ op_to_char (gchar *a, gchar **next) case '|': case '(': case ')': - *next = a + 1; + if ((a[0] == '&' && a[1] == '&') || + (a[0] == '|' && a[1] == '|')) { + *next = a + 2; + } + else { + *next = a + 1; + } return *a; case 'O': case 'o': -- cgit v1.2.3