%{
+#include "defs.h"
+
+#include <glib.h>
+
+#include "intl.h"
+#include "utils.h"
#include "filtering.h"
#include "scoring.h"
#include "matcher.h"
#include "matcher_parser.h"
#include "matcher_parser_lex.h"
-#include "intl.h"
-#include <glib.h>
-#include "defs.h"
-#include "utils.h"
static gint error = 0;
static gint bool_op = 0;
%token MATCHER_MARK_AS_READ MATCHER_MARK_AS_UNREAD MATCHER_FORWARD
%token MATCHER_FORWARD_AS_ATTACHMENT MATCHER_EOL MATCHER_STRING
%token MATCHER_OR MATCHER_AND
-%token MATCHER_COLOR MATCHER_SCORE_EQUAL MATCHER_BOUNCE
+%token MATCHER_COLOR MATCHER_SCORE_EQUAL MATCHER_BOUNCE MATCHER_DELETE_ON_SERVER
%start file
color = atoi($2);
action = filteringaction_new(action_type, 0, NULL, color);
}
+| MATCHER_DELETE_ON_SERVER
+{
+ gint action_type = 0;
+ action_type = MATCHACTION_DELETE_ON_SERVER;
+ action = filteringaction_new(action_type, 0, NULL, 0);
+}
;
scoring_rule: