diff src/context.cpp @ 3:01268466f0dc

initial version
author carl
date Fri, 10 Mar 2006 11:00:12 -0800
parents 616666e2f34c
children 61a4e8773e2e
line wrap: on
line diff
--- a/src/context.cpp	Fri Mar 10 10:47:12 2006 -0800
+++ b/src/context.cpp	Fri Mar 10 11:00:12 2006 -0800
@@ -22,6 +22,7 @@
 static char* context_version="$Id$";
 
 char *token_envfrom;
+char *token_include;
 char *token_lbrace;
 char *token_rbrace;
 char *token_rcptto;
@@ -41,7 +42,7 @@
 }
 
 
-char *CONFIG::find(char *needle, &string_map haystack) {
+char *CONFIG::find(char *needle, string_map &haystack) {
 	string_map::iterator i = haystack.find(needle);
 	if (i != haystack.end()) return (*i).second;	  // found user@domain.tld key
 	char *x = strchr(needle, '@');
@@ -182,7 +183,7 @@
 			}
 		}
 		else {
-			tok.token_error(token_context, have);
+			tok.token_error("env_from/rcpt_to", have);
 			return false;
 		}
 	}
@@ -195,6 +196,7 @@
 //
 void token_init() {
 	token_envfrom	 = register_string("env_from");
+	token_include	 = register_string("include");
 	token_lbrace	 = register_string("{");
 	token_rbrace	 = register_string("}");
 	token_rcptto	 = register_string("rcpt_to");