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

Added registration of side-effect extension into binary.

parent 169a3649
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@
static bool ext_copy_load(int ext_id);
static bool ext_copy_validator_load(struct sieve_validator *validator);
static bool ext_copy_binary_load(struct sieve_binary *sbin);
/* Extension definitions */
......@@ -33,7 +34,9 @@ const struct sieve_extension copy_extension = {
"copy",
ext_copy_load,
ext_copy_validator_load,
NULL, NULL, NULL,
NULL,
ext_copy_binary_load,
NULL,
SIEVE_EXT_DEFINE_NO_OPCODES,
NULL
};
......@@ -116,3 +119,11 @@ static bool ext_copy_validator_load(struct sieve_validator *validator)
return TRUE;
}
static bool ext_copy_binary_load(struct sieve_binary *sbin)
{
sieve_side_effect_extension_set(sbin, ext_my_id, &ext_copy_side_effect);
return TRUE;
}
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.