From: Art Cancro Date: Fri, 3 Nov 2023 20:34:07 +0000 (-0400) Subject: room_functions.c: remove diagnostic hex dump of recipient field X-Git-Tag: v997~101 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=09186f9e04c7de4d95979376c459e89b111f0113 room_functions.c: remove diagnostic hex dump of recipient field --- diff --git a/webcit-ng/server/room_functions.c b/webcit-ng/server/room_functions.c index e820ea0b4..a58197120 100644 --- a/webcit-ng/server/room_functions.c +++ b/webcit-ng/server/room_functions.c @@ -101,17 +101,6 @@ void json_stat(struct http_transaction *h, struct ctdlsession *c) { } -// remove this when finished -void diag_hexdump_str(char *str, char *desc) { - printf("%s\n", desc); - FILE *fp = popen("hexdump -C", "w"); - if (fp) { - fwrite(str, strlen(str), 1, fp); - pclose(fp); - } -} - - // Client is requesting a mailbox summary of the current room void json_mailbox(struct http_transaction *h, struct ctdlsession *c) { char buf[1024]; @@ -130,7 +119,6 @@ void json_mailbox(struct http_transaction *h, struct ctdlsession *c) { JsonObjectAppend(jmsg, NewJsonPlainString(HKEY("author"), field, -1)); extract_token(field, buf, 4, '|', sizeof field); utf8ify_rfc822_string(field); - diag_hexdump_str(field, "address"); JsonObjectAppend(jmsg, NewJsonPlainString(HKEY("addr"), field, -1)); extract_token(field, buf, 5, '|', sizeof field); utf8ify_rfc822_string(field);