diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-25 21:24:37 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-25 21:24:37 +0400 |
commit | e1fea1e66d0f1111e934bb0e86bd2ce25da6df6e (patch) | |
tree | bdb01f8536955fb802068ac39eb18e2a727afa16 /src/expressions.c | |
parent | 71b43d966af50b69605fd91453e90eb3c67a3203 (diff) | |
download | rspamd-e1fea1e66d0f1111e934bb0e86bd2ce25da6df6e.tar.gz rspamd-e1fea1e66d0f1111e934bb0e86bd2ce25da6df6e.zip |
* Make composites working
* Document using of composites
Diffstat (limited to 'src/expressions.c')
-rw-r--r-- | src/expressions.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/expressions.c b/src/expressions.c index 83bceae7a..8ea4ebc50 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -446,6 +446,19 @@ parse_expression (memory_pool_t *pool, char *line) } state = READ_OPERATOR; } + else if (*(p + 1) == '\0') { + /* In fact it is not function, but symbol */ + p ++; + if (c != p) { + str = memory_pool_alloc (pool, p - c + 1); + g_strlcpy (str, c, (p - c + 1)); + g_strstrip (str); + if (strlen (str) > 0) { + insert_expression (pool, &expr, EXPR_STR, 0, str); + } + } + state = SKIP_SPACES; + } else { p ++; } |