Even after calling get_crlf_encoded, db_send_message_lines has this very
weird loop, without any comments, before sending out the body:

        /* always send all headers */
        raw = get_crlf_encoded(hdr);
        ci_write((FILE *)fstream, "%s", raw);
        dm_free(hdr);
        dm_free(raw);

        /* send requested body lines */ 
        raw = get_crlf_encoded(buf);
        dm_free(buf);

--- confused from here
        s = g_string_new(raw);
        if (lines > 0) {
                while (raw[pos] && n < lines) {
                        if (raw[pos] == '\n')
                                n++;
                        pos++;
                }
                s = g_string_truncate(s,pos);
        }
--- to here about this
        dm_free(raw);

Aaron

Reply via email to