X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fimap_search.c;h=cad499ceb63ad2091768ae552a5d8c99b2243758;hp=0697441d50bc9403ce21e7e2361ace491bee67aa;hb=55013f95f08eafe1b375df4241e8defe387c6cdc;hpb=2b80e75820618944e1c75b9c01aeeefc8b6b0c81 diff --git a/citadel/modules/imap/imap_search.c b/citadel/modules/imap/imap_search.c index 0697441d5..cad499ceb 100644 --- a/citadel/modules/imap/imap_search.c +++ b/citadel/modules/imap/imap_search.c @@ -281,7 +281,7 @@ int imap_do_search_msg(int seq, struct CtdlMessage *supplied_msg, need_to_free_msg = 1; } if (msg != NULL) { - if (strlen(msg->cm_fields[eMesageText]) > atoi(itemlist[pos+1].Key)) { + if (msg->cm_lengths[eMesageText] > atoi(itemlist[pos+1].Key)) { match = 1; } } @@ -402,7 +402,7 @@ int imap_do_search_msg(int seq, struct CtdlMessage *supplied_msg, need_to_free_msg = 1; } if (msg != NULL) { - if (strlen(msg->cm_fields[eMesageText]) < atoi(itemlist[pos+1].Key)) { + if (msg->cm_lengths[eMesageText] < atoi(itemlist[pos+1].Key)) { match = 1; } }