set-mime-content-id

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > MIME Expression Functions >

set-mime-content-id

Returns a stream with the "Content-ID" header set to value, and all other headers and content untouched. You can also achieve the same result using the set-mime-header function; this function represents a more direct approach.

 

Signature

set-mime-content-id(s:stream, value:string="") -> stream

 

Parameters

Name

Type

Description

s

stream

Specifies the input string.

value

string

Specifies the value to set in the "Content-Disposition".

 

Examples

Let's assume that you want to set the value of the "Content-ID" header in stream msg to <root.attachment>. To do this, use the following expression:

 

set-mime-content-id(msg, "<root.attachment>")


© 2019 Altova GmbH