room_functions.c: remove diagnostic hex dump of recipient field
authorArt Cancro <ajc@citadel.org>
Fri, 3 Nov 2023 20:34:07 +0000 (16:34 -0400)
committerArt Cancro <ajc@citadel.org>
Fri, 3 Nov 2023 20:34:07 +0000 (16:34 -0400)
webcit-ng/server/room_functions.c

index e820ea0b45a68976f2c645bfc281c7969f7eb10f..a58197120664519b7607f2bbae3c93aa1d9d61b3 100644 (file)
@@ -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);