summaryrefslogtreecommitdiffstats
path: root/src/expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-06 20:38:03 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-06 20:38:03 +0400
commit75bf13b9bda0d1eb98671b68064becd4f6946c14 (patch)
tree91a5c03c1d4f394762301fa0aac588baacd99b49 /src/expressions.c
parent52c0b882c0b885a70d6e6af858c08771b6db3ea6 (diff)
downloadrspamd-75bf13b9bda0d1eb98671b68064becd4f6946c14.tar.gz
rspamd-75bf13b9bda0d1eb98671b68064becd4f6946c14.zip
* Add ability to test regexp with 'T' flag
* Write more code for DNS resolver: - initial RR parser - name compression - replies handler
Diffstat (limited to 'src/expressions.c')
-rw-r--r--src/expressions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/expressions.c b/src/expressions.c
index f19e67670..c4465742c 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -244,6 +244,7 @@ is_regexp_flag (char a)
case 'P':
case 'U':
case 'X':
+ case 'T':
return TRUE;
default:
return FALSE;
@@ -671,6 +672,10 @@ parse_regexp (memory_pool_t * pool, char *line, gboolean raw_mode)
}
p++;
break;
+ case 'T':
+ result->is_test = TRUE;
+ p ++;
+ break;
/* Stop flags parsing */
default:
p = NULL;