getReceivedItemText (NotesDocument - JavaScript)

Gets the text values of the received items in a mail document.

Defined in

NotesDocument

Syntax

getReceivedItemText() : java.util.Vector
Return value Description
java.util.Vector Vector of string elements. The text values of the received items, one item per element.

Usage

This method applies to Received items generated from an Internet mail message. The items can be in MIME or Notes® format.

If the document has no received items, this method returns a vector of one element whose value is an empty string.

A received item with an incorrect format (not an Internet mail message) throws exception.

Examples

This button gets all the Received items in the current document.
try {

var doc:NotesDocument = currentDocument.getDocument();
var rit:java.util.Vector = doc.getReceivedItemText();
if (rit.isEmpty()) {
	requestScope.status = "No Received items";
} else {
	requestScope.status = "Received items";
	var iterator = rit.iterator();
	while (iterator.hasNext()) {
		requestScope.status += "\n\n" + iterator.next();
	}
}

} catch(e) {
	requestScope.status += "\n" + e.toString();
}