From ca44fcdc2dc19d59a8596ec83bea5fcffc265fa1 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Fri, 4 Jan 2008 17:50:23 +0100
Subject: [PATCH] Minor fix in the error reporting of the sieve parser.

---
 sieve/errors/interesting.sieve | 2 ++
 src/lib-sieve/sieve-parser.c   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sieve/errors/interesting.sieve b/sieve/errors/interesting.sieve
index 84ee424bf..2dd1f35f3 100644
--- a/sieve/errors/interesting.sieve
+++ b/sieve/errors/interesting.sieve
@@ -3,6 +3,8 @@ require ["copy", "relational"];
 require "envelope";
 require "regex";
 
+va
+
 if header :is "To" "Stephan \"Nico\" Bosch <nico@voorbeeld.nl>" {
 	fileinto "INBOX.stephan";	
 } elsif header :matches "To" "*@voorbeeld.nl" {
diff --git a/src/lib-sieve/sieve-parser.c b/src/lib-sieve/sieve-parser.c
index e28b0a467..48565392a 100644
--- a/src/lib-sieve/sieve-parser.c
+++ b/src/lib-sieve/sieve-parser.c
@@ -395,7 +395,7 @@ bool sieve_parser_run
 	if ( sieve_parse_commands(parser, sieve_ast_root(parser->ast)) ) { 
 		if ( sieve_lexer_current_token(parser->lexer) != STT_EOF ) { 
 			sieve_parser_error(parser, 
-				"unexpected token %s found at (the presumed) end of file",
+				"unexpected %s found at (the presumed) end of file",
 				sieve_lexer_token_string(parser->lexer));
 	
 			parser->ast = NULL;
-- 
GitLab