snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 7f936d2d1a88840209895c6091801e8c4cfdaaa1
parent ac8b03f9e96d5778b3c0ddfea94b54e17963a3d4
Author: shtrophic <christoph@liebender.dev>
Date:   Thu, 24 Apr 2025 12:18:23 +0200

default to `smtp://localhost`

Diffstat:
Mactivitypub.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/activitypub.c b/activitypub.c @@ -2571,7 +2571,7 @@ int send_email(const xs_dict *mailinfo) { const xs_dict *smtp_cfg = xs_dict_get(srv_config, "email_notifications"); const char - *url = xs_dict_get(smtp_cfg, "url"), + *url = xs_dict_get_def(smtp_cfg, "url", "smtp://localhost"), *user = xs_dict_get(smtp_cfg, "username"), *pass = xs_dict_get(smtp_cfg, "password"), *from = xs_dict_get(mailinfo, "from"),