Commit e77d3aa3 authored by deuce's avatar deuce
Browse files

Read only headers that are used.

parent 305c75fe
...@@ -105,10 +105,14 @@ else { ...@@ -105,10 +105,14 @@ else {
template.group=msg_area.grp[msg_area.sub[sub].grp_name]; template.group=msg_area.grp[msg_area.sub[sub].grp_name];
} }
for(displayed=0;displayed<max_messages && last_offset >= 0 && msgarray[last_offset].hdr != null;last_offset--) { for(displayed=0;displayed<max_messages && last_offset >= 0;last_offset--) {
if(msgarray[last_offset].hdr.subject=='') var hdr=msgbase.get_msg_header(true,msgarray[last_offset].offset);
msgarray[last_offset].hdr.subject="-- No Subject --"; if(hdr==null)
template.messages[displayed.toString()]=msgarray[last_offset].hdr; continue;
msgarray[last_offset].hdr != null
if(hdr.subject=='')
hdr.subject="-- No Subject --";
template.messages[displayed.toString()]=hdr;
template.messages[displayed.toString()].attachments=count_attachments(msgarray[last_offset].hdr,msgbase.get_msg_body(true,msgarray[last_offset].offset,true,true)); template.messages[displayed.toString()].attachments=count_attachments(msgarray[last_offset].hdr,msgbase.get_msg_body(true,msgarray[last_offset].offset,true,true));
template.messages[displayed.toString()].offset=msgarray[last_offset].offset; template.messages[displayed.toString()].offset=msgarray[last_offset].offset;
displayed++; displayed++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment