From e4bd7d42e70f3fabedee61ccbb46485710fcbc1e Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 7 May 2015 09:39:26 +0000 Subject: [PATCH] Add an additional argument to podcast_load_headers() to allow keeping the result of get_all_msg_headers() in a passed object (should be empty). --- exec/load/podcast_routines.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/exec/load/podcast_routines.js b/exec/load/podcast_routines.js index 6b8ff8d316..6483022ce7 100644 --- a/exec/load/podcast_routines.js +++ b/exec/load/podcast_routines.js @@ -3,14 +3,20 @@ if (js.global.HTTP == undefined) if (js.global.MSG_DELETE == undefined) js.global.load("sbbsdefs.js"); -function podcast_load_headers(base, from, to) +function podcast_load_headers(base, from, to, all_hdrs) { - var all_hdrs; + var all_msg_headers; var hdrs = []; var i; var hdr; - all_hdrs = base.get_all_msg_headers(); + if (all_hdrs == undefined) + all_hdrs = base.get_all_msg_headers(); + else { + all_msg_headers = base.get_all_msg_headers(); + for (i in all_msg_headers) + all_hdrs[i] = all_msg_headers[i]; + } for (i in all_hdrs) { hdr = all_hdrs[i]; if (hdr == null) -- GitLab