Skip to content
Snippets Groups Projects
Commit 1cc38298 authored by deuce's avatar deuce
Browse files

Use MsgBase.get_all_msg_headers() isntead of manually iterating.

parent 9fe482a3
Branches
Tags
No related merge requests found
......@@ -3,12 +3,14 @@ if (js.global.MSG_DELETE == undefined)
function podcast_load_headers(base, from, to)
{
var all_hdrs;
var hdrs = [];
var i;
var hdr;
for (i = base.first_msg; i <= base.last_msg; i++) {
hdr = base.get_msg_header(i);
all_hdrs = base.get_all_msg_headers();
for (i in all_hdrs) {
hdr = all_hdrs[i];
if (hdr == null)
continue;
if (hdr.attr & MSG_DELETE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment