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

Include: include error message for failed :global include.

parent b24b7269
No related branches found
No related tags found
No related merge requests found
......@@ -80,19 +80,30 @@ const char *ext_include_get_script_directory
sieve_dir = home_expand_tilde("~/sieve", home);
}
if (sieve_dir == NULL) {
sieve_sys_error(
"include: sieve_dir and home not set for :personal script include "
"(wanted script %s)", str_sanitize(script_name, 80));
return NULL;
}
break;
case EXT_INCLUDE_LOCATION_GLOBAL:
sieve_dir = getenv("SIEVE_GLOBAL_DIR");
if (sieve_dir == NULL) {
sieve_sys_error(
"include: sieve_global_dir not set for :global script include "
"(wanted script %s)", str_sanitize(script_name, 80));
return NULL;
}
break;
default:
return NULL;
}
if (sieve_dir == NULL) {
sieve_sys_error("include: sieve_dir and home not set "
"(wanted script %s)", str_sanitize(script_name, 80));
return NULL;
}
return sieve_dir;
}
......
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.