Skip to content
Snippets Groups Projects
Commit a61fb923 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Added access methods for message data en script environment to result object.

parent 055ade7b
No related branches found
No related tags found
No related merge requests found
......@@ -148,11 +148,26 @@ pool_t sieve_result_pool(struct sieve_result *result)
return result->pool;
}
/*
* Getters/Setters
*/
struct sieve_error_handler *sieve_result_get_error_handler
(struct sieve_result *result)
{
return result->ehandler;
}
const struct sieve_script_env *sieve_result_get_script_env
(struct sieve_result *result)
{
return result->action_env.scriptenv;
}
const struct sieve_message_data *sieve_result_get_message_data
(struct sieve_result *result)
{
return result->action_env.msgdata;
}
struct sieve_message_context *sieve_result_get_message_context
(struct sieve_result *result)
......
......@@ -28,11 +28,19 @@ void sieve_result_unref(struct sieve_result **result);
pool_t sieve_result_pool(struct sieve_result *result);
/*
* Getters/Setters
*/
struct sieve_error_handler *sieve_result_get_error_handler
(struct sieve_result *result);
void sieve_result_set_error_handler
(struct sieve_result *result, struct sieve_error_handler *ehandler);
const struct sieve_script_env *sieve_result_get_script_env
(struct sieve_result *result);
const struct sieve_message_data *sieve_result_get_message_data
(struct sieve_result *result);
struct sieve_message_context *sieve_result_get_message_context
(struct sieve_result *result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.