Hello,

I reviewed dbsearch.c to find out whether one could quickly replace db_fetch_headerws with db_get_main_header for header searches.

And here is the part I do not understand:

        /* no match found yet, try the children */
        el = list_getstart(&msg->children);
        while (el) {
                if (db_exec_search
                    ((mime_message_t *) el->data, sk, msg_idnr) == 1)
                        return 1;

                el = el->nextnode;
        }

This is the only part that, in case of a header search, uses the data from more than just the header. What is this for? Why do we have to search "children"?

Yours, Mikhail Ramendik

Reply via email to