commit f0509f8
grunfink
·
2025-06-04 04:38:44 +0000 UTC
parent c2cac57
Minor tweak.
1 files changed,
+3,
-2
+3,
-2
1@@ -13,12 +13,13 @@ void sbox_enter(const char *basedir)
2 return;
3 }
4
5- int smail = !xs_is_true(xs_dict_get(srv_config, "disable_email_notifications"));
6-
7+ int smail;
8 const char *url = xs_dict_get(srv_config, "smtp_url");
9
10 if (xs_is_string(url) && *url)
11 smail = 0;
12+ else
13+ smail = !xs_is_true(xs_dict_get(srv_config, "disable_email_notifications"));
14
15 srv_debug(1, xs_fmt("Calling unveil()"));
16 unveil(basedir, "rwc");