From 1cc382982ce8d849b04aa84548141ceb96615526 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 6 May 2015 21:18:32 +0000 Subject: [PATCH] Use MsgBase.get_all_msg_headers() isntead of manually iterating. --- exec/load/podcast_routines.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exec/load/podcast_routines.js b/exec/load/podcast_routines.js index 9bbe858655..9242b5d21b 100644 --- a/exec/load/podcast_routines.js +++ b/exec/load/podcast_routines.js @@ -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) -- GitLab