aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2025-01-24 20:38:26 +0100
committershtrophic <christoph@liebender.dev>2025-01-24 20:38:26 +0100
commit85be7f36e12507cff7607df22ca14f8bfc00f6e2 (patch)
treee41bedab3e3b011c16d2ea6180926470cc8586aa /utils.c
parent13e4a7cda59db29063efc5dad0823fe99ec7b764 (diff)
parent1cb7b37ae6adb01444ea1466d8884aacca10ebd8 (diff)
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 3b0a78f..faf6d12 100644
--- a/utils.c
+++ b/utils.c
@@ -318,6 +318,10 @@ int adduser(const char *uid)
mkdirx(d);
}
+ /* add a specially short data retention time for the relay */
+ if (strcmp(uid, "relay") == 0)
+ config = xs_dict_set(config, "purge_days", xs_stock(1));
+
xs *cfn = xs_fmt("%s/user.json", basedir);
if ((f = fopen(cfn, "w")) == NULL) {