happy happy: convert_msgtext() also works for convert_bigmsgs()
authorArt Cancro <ajc@citadel.org>
Tue, 18 Jul 2023 02:55:27 +0000 (17:55 -0900)
committerArt Cancro <ajc@citadel.org>
Tue, 18 Jul 2023 02:55:27 +0000 (17:55 -0900)
citadel/utils/ctdlload.c

index 5cf735b5ed92f1effc5506ab6beed7b60d1a32fe..ec9af713661f933703ca024d51d73b548b3d2893 100644 (file)
@@ -118,6 +118,7 @@ int convert_foo(char *line, DBT *out_key, DBT *out_data) {
 
 
 // Convert a "msgtext" record to a message on disk.   NOT THREADSAFE
+// This also works for "bigmsg" records.
 int convert_msgtext(char *line, DBT *out_key, DBT *out_data) {
 
        static char *b64_decoded_msg = NULL;
@@ -576,7 +577,7 @@ void ingest_one(char *line, DB_ENV *dst_dbenv) {
        else if (!strcasecmp(record_type, "msglist"))           row_was_good = convert_msglist(line, &out_key, &out_data);
        else if (!strcasecmp(record_type, "visit"))             row_was_good = convert_visit(line, &out_key, &out_data);
        else if (!strcasecmp(record_type, "use"))               row_was_good = convert_usetable(line, &out_key, &out_data);
-       else if (!strcasecmp(record_type, "bigmsg"))            row_was_good = convert_foo(line, &out_key, &out_data);
+       else if (!strcasecmp(record_type, "bigmsg"))            row_was_good = convert_msgtext(line, &out_key, &out_data);
        else if (!strcasecmp(record_type, "config"))            row_was_good = convert_foo(line, &out_key, &out_data);
        else                                                    row_was_good = 0;