Skip to content
Snippets Groups Projects
Commit 1bd66f47 authored by rswindell's avatar rswindell
Browse files

Pass 'false' for the expand_fields argument to MsgBase.get_msg_header() since

we call put_msg_header() later with this same message header.
parent d1e525ce
No related branches found
No related tags found
No related merge requests found
...@@ -1521,7 +1521,7 @@ function delete_message(msg) ...@@ -1521,7 +1521,7 @@ function delete_message(msg)
send_response(msg.hdr, [{id:100, value:"Missing Message ID"}], 1); send_response(msg.hdr, [{id:100, value:"Missing Message ID"}], 1);
return; return;
} }
hdr = mb.get_msg_header(msg.params[326].data); hdr = mb.get_msg_header(msg.params[326].data, /* expand_fields: */false);
if (hdr == undefined) { if (hdr == undefined) {
send_response(msg.hdr, [{id:100, value:"Bad Message ID"}], 1); send_response(msg.hdr, [{id:100, value:"Bad Message ID"}], 1);
return; return;
......
...@@ -223,7 +223,7 @@ function send_fetch_response(msgnum, fmat, uid) ...@@ -223,7 +223,7 @@ function send_fetch_response(msgnum, fmat, uid)
*/ */
function get_header() { function get_header() {
if(hdr == undefined) { if(hdr == undefined) {
hdr=base.get_msg_header(msgnum); hdr=base.get_msg_header(msgnum, /* expand_fields: */false);
} }
} }
......
...@@ -67,7 +67,7 @@ function create_newuser() ...@@ -67,7 +67,7 @@ function create_newuser()
if (!mail.open()) if (!mail.open())
return; return;
for (i=mail.first_msg; i<=mail.last_msg; i++) { for (i=mail.first_msg; i<=mail.last_msg; i++) {
hdr = mail.get_msg_header(i); hdr = mail.get_msg_header(i, /* expand_fields: */false);
if (hdr === null || hdr.number == 0) if (hdr === null || hdr.number == 0)
continue; continue;
if (hdr.addr & MSG_DELETE) if (hdr.addr & MSG_DELETE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment