getSomeHeaders (NotesMIMEEntity - JavaScript™)
Returns specified headers for a MIME entity as one string.
Defined in
NotesMIMEEntitySyntax
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:
|
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 theSubject
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);