Please enable JavaScript to view this site.

Altova FlowForce Server 2020 

Returns the value of the Content-ID header from the stream supplied as argument, if such header exists; otherwise, it returns the value of the default argument.

 

Signature

get-mime-content-id(s:stream, default:string="") -> string

 

Parameters

Name

Type

Description

s

stream

Specifies the input stream.

default

string

Specifies the value to return when Content-ID header does not exist. By default, this is an empty string.

 

Examples

Let's suppose that stream msg has the header Content-ID: <root.attachment>. The expression

 

get-mime-content-id(msg, "")

 

returns "<root.attachment>" in this case. If no such header exists, the expression above returns an empty string (the value of the second argument).

© 2019 Altova GmbH