getSomeHeaders (NotesMIMEEntity - JavaScript)

Returns specified headers for a MIME entity as one string.

Defined in

NotesMIMEEntity

Syntax

getSomeHeaders() : string

getSomeHeaders(headerFilters:java.util.Vector) : string

getSomeHeaders(headerFilters:java.util.Vector, inclusive:boolean) : string

Parameter Description
headerFilters Names of headers that may be present in the MIME entity. See the next parameter. Defaults to all headers.
inclusive Specify:
  • true to include headers that match the names in the previous parameter.
  • false (default) to exclude headers that match the names in the previous parameter.
Return value Description
string The headers.

Usage

If you specify no parameters, this method is the same as Headers.

Representation is as one string with new lines separating the headers.

Examples

This button gets the Subject and From headers for a document with MIME content.
// Do not automatically convert MIME to rich text
session.setConvertMIME(false);
var mime:NotesMIMEEntity = currentDocument.getDocument().getMIMEEntity();
if (mime != null) {
	var filter = new java.util.Vector();
	filter.addElement("Subject");
	filter.addElement("From");
	requestScope.status = mime.getSomeHeaders(filter, true);
} else {
	requestScope.status = "Not MIME";
}
// Restore conversion
session.setConvertMIME(true);