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

lib-sieve: fixed bug in message snapshots.

Message substitutions would not always cause a proper snapshot.
parent 68615e53
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,7 @@ struct sieve_message_context {
ARRAY_DEFINE(ext_contexts, void *);
unsigned int edit_snapshot:1;
unsigned int substitute_snapshot:1;
};
/*
......@@ -376,7 +377,7 @@ int sieve_message_substitute
return -1;
}
if ( msgctx->edit_snapshot ) {
if ( msgctx->substitute_snapshot ) {
version = sieve_message_version_new(msgctx);
} else {
version = sieve_message_version_get(msgctx);
......@@ -392,6 +393,7 @@ int sieve_message_substitute
sieve_message_context_flush(msgctx);
msgctx->substitute_snapshot = FALSE;
msgctx->edit_snapshot = FALSE;
return 1;
......@@ -436,6 +438,7 @@ void sieve_message_snapshot
(struct sieve_message_context *msgctx)
{
msgctx->edit_snapshot = TRUE;
msgctx->substitute_snapshot = 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.