addValText (MIMEHeader - Java)

Appends encoded text to a header value.

Defined in

MIMEHeader

Syntax

public boolean addValText(String valueText)
     throws NotesException
public boolean addValText(String valueText, String charSet)
     throws NotesException

Parameters

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

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.

Example