diff options
| author | 2025-02-19 08:56:14 +0100 | |
|---|---|---|
| committer | 2025-02-19 08:56:14 +0100 | |
| commit | 2ca7735779e79dbe6fe62f0111a12c145f428d8f (patch) | |
| tree | 16c523a9e7f29576435368165f92c1f34e3c2ab8 /data.c | |
| parent | Merge remote-tracking branch 'upstream/master' into curl-smtp (diff) | |
| download | snac2-2ca7735779e79dbe6fe62f0111a12c145f428d8f.tar.gz snac2-2ca7735779e79dbe6fe62f0111a12c145f428d8f.tar.xz snac2-2ca7735779e79dbe6fe62f0111a12c145f428d8f.zip | |
fix ownership-problem of mailinfo
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -3174,7 +3174,7 @@ static xs_dict *_enqueue_put(const char *fn, xs_dict *msg) | |||
| 3174 | } | 3174 | } |
| 3175 | 3175 | ||
| 3176 | 3176 | ||
| 3177 | static xs_dict *_new_qmsg(const char *type, const xs_val *msg, int retries) | 3177 | static xs_dict *_new_qmsg(const char *type, xs_dict *msg, int retries) |
| 3178 | /* creates a queue message */ | 3178 | /* creates a queue message */ |
| 3179 | { | 3179 | { |
| 3180 | int qrt = xs_number_get(xs_dict_get(srv_config, "queue_retry_minutes")); | 3180 | int qrt = xs_number_get(xs_dict_get(srv_config, "queue_retry_minutes")); |
| @@ -3276,9 +3276,10 @@ void enqueue_output_by_actor(snac *snac, const xs_dict *msg, | |||
| 3276 | } | 3276 | } |
| 3277 | 3277 | ||
| 3278 | 3278 | ||
| 3279 | void enqueue_email(const xs_dict *msg, int retries) | 3279 | void enqueue_email(xs_dict *msg, int retries) |
| 3280 | /* enqueues an email message to be sent */ | 3280 | /* enqueues an email message to be sent */ |
| 3281 | { | 3281 | { |
| 3282 | /* qmsg owns msg */ | ||
| 3282 | xs *qmsg = _new_qmsg("email", msg, retries); | 3283 | xs *qmsg = _new_qmsg("email", msg, retries); |
| 3283 | const char *ntid = xs_dict_get(qmsg, "ntid"); | 3284 | const char *ntid = xs_dict_get(qmsg, "ntid"); |
| 3284 | xs *fn = xs_fmt("%s/queue/%s.json", srv_basedir, ntid); | 3285 | xs *fn = xs_fmt("%s/queue/%s.json", srv_basedir, ntid); |