user2018 wrote:I would like to retrieve the body text without the headers.
Try this:morat wrote:code snippet based on the |IETstoreBody| function
Code: Select all
text = text.replace("$%$%$", ":");
+ for (var i = 0; i < 9; i++) text = text.replace(/^.*\r\n/, "");
var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"].
getService(Components.interfaces.nsIClipboardHelper);