addValText (NotesMIMEHeader - JavaScript)

Appends encoded text to a header value.

Defined in

NotesMIMEHeader

Syntax

addValText(valueText:string) : boolean

addValText(valueText:string, charSet:string) : boolean

Parameter Description
String valueText String The text to be appended. If the header has no value, this text becomes the complete value.
String charSet String A character set acceptable to RFC-2047.
Return value Description
boolean
  • true if the header value can be saved as a MIME header upon Document.save.
  • false if the header value cannot be saved as a MIME header upon Document.save.

Usage

If valueText contains only US-ASCII characters, no encoding occurs.

If valueText contains non-US-ASCII characters and a character set is specified, encoding occurs according to RFC-2047 You must call Document.save to commit this change.