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.

Skip to content
Snippets Groups Projects
Commit 9f8d9047 authored by Timo Sirainen's avatar Timo Sirainen Committed by aki.tuomi
Browse files

managesieve-login: Run dump-capability only for config/doveconf/managesieve

parent 7731f536
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,13 @@ static bool capability_dump(void)
if ( getenv("DUMP_CAPABILITY") != NULL )
return TRUE;
/* We want to dump capability only when doing the main config parsing
(config and doveconf processes) and managesieve process (started
from command line). We especially don't want to dump capability
every time when running doveadm. */
const char *service = getenv("DOVECONF_SERVICE");
if (service != NULL && strcmp(service, "sieve") != 0)
return TRUE;
if ( pipe(fd) < 0 ) {
i_error("managesieve-login: dump-capability pipe() failed: %m");
return FALSE;
......
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