diff --git a/src/lib-sieve/plugins/variables/ext-variables-namespaces.c b/src/lib-sieve/plugins/variables/ext-variables-namespaces.c
index 9e5220acbd5293f57fcd4516842c7e5f85402472..69b2cf5d447595b2f9489286d73a119556c4786a 100644
--- a/src/lib-sieve/plugins/variables/ext-variables-namespaces.c
+++ b/src/lib-sieve/plugins/variables/ext-variables-namespaces.c
@@ -177,7 +177,7 @@ const struct sieve_operand_def namespace_variable_operand = {
 	&namespace_variable_interface
 };
 
-void ext_variables_opr_namespace_variable_emit
+void sieve_variables_opr_namespace_variable_emit
 (struct sieve_binary *sbin, const struct sieve_extension *var_ext,
 	const struct sieve_extension *ext,
 	const struct sieve_variables_namespace_def *nspc_def)
diff --git a/src/lib-sieve/plugins/variables/sieve-ext-variables.h b/src/lib-sieve/plugins/variables/sieve-ext-variables.h
index 1013c8f614526f185eedc6eb82366d02ab912bea..64c83d946b8deeebe1733b5c6adcfbf38f3952df 100644
--- a/src/lib-sieve/plugins/variables/sieve-ext-variables.h
+++ b/src/lib-sieve/plugins/variables/sieve-ext-variables.h
@@ -103,6 +103,9 @@ struct sieve_variables_namespace_def {
 			const char *field_name);
 };
 
+#define SIEVE_VARIABLES_DEFINE_NAMESPACE(OP) SIEVE_EXT_DEFINE_OBJECT(OP)
+#define SIEVE_VARIABLES_DEFINE_NAMESPACES(OPS) SIEVE_EXT_DEFINE_OBJECTS(OPS)
+
 struct sieve_variables_namespace {
 	struct sieve_object object;
 		
@@ -114,6 +117,13 @@ void sieve_variables_namespace_register
 	const struct sieve_extension *ext,
 	const struct sieve_variables_namespace_def *nspc_def);
 
+extern const struct sieve_operand_class sieve_variables_namespace_operand_class;
+
+void sieve_variables_opr_namespace_variable_emit
+(struct sieve_binary *sbin, const struct sieve_extension *var_ext,
+    const struct sieve_extension *ext,
+    const struct sieve_variables_namespace_def *nspc_def);
+
 /* Iteration over all declared variables */
 
 struct sieve_variable_scope_iter;