Index: elogd.c =================================================================== --- elogd.c (revisione 2280) +++ elogd.c (copia locale) @@ -19539,6 +19539,19 @@ if (status != EL_SUCCESS) break; + if ( getcfg(lbs->name, "Filter last entry", str, sizeof(str)) && atoi(str) == 1 ) { + /* search last entry in this thread */ + if (reply_to[0]) { + search_last_reply(msg_list[index].lbs, &message_id); + size = TEXT_SIZE; + status = + el_retrieve(msg_list[index].lbs, message_id, date, attr_list, attrib, lbs->n_attr, text, + &size, in_reply_to, reply_to, attachment, encoding, locked_by); + if (status != EL_SUCCESS) + break; + } + } + /* apply filter for attributes */ for (i = 0; i < lbs->n_attr; i++) {