Renamed inboxes/ to inbox/.

This commit is contained in:
default 2023-03-02 09:01:08 +01:00
parent 5e3c50d6e1
commit e74ae0f589
2 changed files with 15 additions and 3 deletions

View File

@ -279,6 +279,7 @@ d_char *recipient_list(snac *snac, char *msg, int expand_public)
}
#if 0
d_char *inbox_list(snac *snac, char *msg)
/* returns the list of inboxes that are recipients of this message */
{
@ -302,7 +303,7 @@ d_char *inbox_list(snac *snac, char *msg)
return xs_set_result(&inboxes);
}
#endif
int is_msg_public(snac *snac, char *msg)
/* checks if a message is public */

15
data.c
View File

@ -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)