aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2025-02-20 17:13:12 +0100
committershtrophic <christoph@liebender.dev>2025-02-20 17:13:12 +0100
commit59a34a9646e28cc9a63194ff55547de0005d0110 (patch)
tree0d11017b6431c514bd6afd16138a06851cd2f09e /data.c
parent2ca7735779e79dbe6fe62f0111a12c145f428d8f (diff)
Revert "fix ownership-problem of mailinfo"
This reverts commit 2ca7735779e79dbe6fe62f0111a12c145f428d8f.
Diffstat (limited to 'data.c')
-rw-r--r--data.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/data.c b/data.c
index d25a5d7..ae85aaf 100644
--- a/data.c
+++ b/data.c
@@ -3174,7 +3174,7 @@ static xs_dict *_enqueue_put(const char *fn, xs_dict *msg)
}
-static xs_dict *_new_qmsg(const char *type, xs_dict *msg, int retries)
+static xs_dict *_new_qmsg(const char *type, const xs_val *msg, int retries)
/* creates a queue message */
{
int qrt = xs_number_get(xs_dict_get(srv_config, "queue_retry_minutes"));
@@ -3276,10 +3276,9 @@ void enqueue_output_by_actor(snac *snac, const xs_dict *msg,
}
-void enqueue_email(xs_dict *msg, int retries)
+void enqueue_email(const xs_dict *msg, int retries)
/* enqueues an email message to be sent */
{
- /* qmsg owns msg */
xs *qmsg = _new_qmsg("email", msg, retries);
const char *ntid = xs_dict_get(qmsg, "ntid");
xs *fn = xs_fmt("%s/queue/%s.json", srv_basedir, ntid);