turn back loading full msg for thread list

This commit is contained in:
Ianos Gnatiuc 2005-11-03 07:28:09 +00:00
parent 0d55967a87
commit 12efe82778

View File

@ -775,16 +775,12 @@ void GThreadlist::do_delayed() {
// Reload message if not sure that just reread // Reload message if not sure that just reread
if(not AA->Msglistheader()) { if(not AA->Msglistheader()) {
t = list[index]; t = list[index];
#if 1 // need to read header only
AA->LoadHdr(&msg, t.msgno);
#else
if(AA->Msglistfast()) { if(AA->Msglistfast()) {
AA->LoadHdr(&msg, t.msgno); AA->LoadHdr(&msg, t.msgno);
} }
else { else {
AA->LoadMsg(&msg, t.msgno, CFG->dispmargin-(int)CFG->switches.get(disppagebar)); AA->LoadMsg(&msg, t.msgno, CFG->dispmargin-(int)CFG->switches.get(disppagebar));
} }
#endif
} }
wtitle(msg.re, TCENTER|TBOTTOM, tattr); wtitle(msg.re, TCENTER|TBOTTOM, tattr);
} }
@ -868,16 +864,12 @@ void GThreadlist::print_line(uint idx, uint pos, bool isbar) {
t = list[idx]; t = list[idx];
size_t tdlen = xlen - ((AA->Msglistdate() == MSGLISTDATE_NONE) ? 8 : 18); size_t tdlen = xlen - ((AA->Msglistdate() == MSGLISTDATE_NONE) ? 8 : 18);
#if 1 // need to read header only
AA->LoadHdr(&msg, t.msgno);
#else
if(AA->Msglistfast()) { if(AA->Msglistfast()) {
AA->LoadHdr(&msg, t.msgno); AA->LoadHdr(&msg, t.msgno);
} }
else { else {
AA->LoadMsg(&msg, t.msgno, CFG->dispmargin-(int)CFG->switches.get(disppagebar)); AA->LoadMsg(&msg, t.msgno, CFG->dispmargin-(int)CFG->switches.get(disppagebar));
} }
#endif
int attrh, attrw; int attrh, attrw;
if(msg.attr.uns() and not msg.attr.rcv() and not msg.attr.del()) { if(msg.attr.uns() and not msg.attr.rcv() and not msg.attr.del()) {