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

doveadm sieve plugin: Added proper handling of Sieve storage initialization...

doveadm sieve plugin: Added proper handling of Sieve storage initialization failure occurring when sieve_enabled=no
parent d2a75724
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,14 @@ doveadm_sieve_cmd_run
(ctx->svinst, user, SIEVE_STORAGE_FLAG_READWRITE, &error);
if ( ctx->storage == NULL ) {
switch ( error ) {
case SIEVE_ERROR_NOT_POSSIBLE:
error = SIEVE_ERROR_NOT_FOUND;
i_error("Failed to open Sieve storage: "
"Sieve is disabled for this user");
break;
case SIEVE_ERROR_NOT_FOUND:
i_error("Failed to open Sieve storage: Sieve disabled for user");
i_error("Failed to open Sieve storage: "
"User cannot manage personal Sieve scripts.");
break;
default:
i_error("Failed to open Sieve storage.");
......
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.