Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var bodytextnew;
- if (!connection.transaction.body) {
- bodyText = "Text Body";
- bodytextnew = "";
- }
- else if (connection.transaction.body.children.length > 0) {
- bodytextnew = "";
- for(i=0;i<connection.transaction.body.children.length;i++){
- bodytextnew1 = connection.transaction.body.children[i].bodytext;
- bodytextnew += bodytextnew1;
- //this.logwarn("BODYchild" + bodytextnew);
- }
- }
- else {
- bodytextnew = connection.transaction.body.body_text_encoded;
- }
Add Comment
Please, Sign In to add comment