diff options
author | default <nobody@localhost> | 2023-03-02 09:01:08 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-03-02 09:01:08 +0100 |
commit | e74ae0f58971e12422068f85e35fc7928206e9f9 (patch) | |
tree | 9fc80a58cc301d076837837eab5e54ff7ae76793 /data.c | |
parent | 5e3c50d6e1ea2105add614fa2eb45612e577ddac (diff) |
Renamed inboxes/ to inbox/.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -96,7 +96,7 @@ int srv_open(char *basedir, int auto_upgrade) xs *qdir = xs_fmt("%s/queue", srv_basedir); mkdirx(qdir); - xs *ibdir = xs_fmt("%s/inboxes", srv_basedir); + xs *ibdir = xs_fmt("%s/inbox", srv_basedir); mkdirx(ibdir); #ifdef __OpenBSD__ @@ -1372,7 +1372,7 @@ void inbox_add(const char *inbox) /* collects a shared inbox */ { xs *md5 = xs_md5_hex(inbox, strlen(inbox)); - xs *fn = xs_fmt("%s/inboxes/%s", srv_basedir, md5); + xs *fn = xs_fmt("%s/inbox/%s", srv_basedir, md5); FILE *f; if ((f = fopen(fn, "w")) != NULL) { @@ -1397,6 +1397,17 @@ void inbox_add_by_actor(const xs_dict *actor) } +#if 0 +xs_list *inbox_list(void) +/* returns the collected inboxes as a list */ +{ + xs_list *l = xs_list_new(); + + return l; +} +#endif + + /** the queue **/ static xs_dict *_enqueue_put(const char *fn, xs_dict *msg) |