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

Created get_msg_body() utility function for use with external mail processors.

parent 868872bc
No related branches found
No related tags found
No related merge requests found
......@@ -23,4 +23,21 @@ function parse_msg_header(msgtxt)
}
return(hdr);
}
\ No newline at end of file
}
function get_msg_body(msgtxt)
{
var body = new Array();
var hdr = true;
for(i in msgtxt) {
if(msgtxt[i].length==0) { // Header terminator
hdr = false;
continue;
}
if(!hdr)
body.push(msgtxt[i]);
}
return(body);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment