Next: , Previous: , Up: Library   [Contents][Index]


5.15 Mail Body Functions

Built-in Function: string body_string (pointer text, number count)

Converts first count bytes from the memory location pointed to by text into a regular string.

This function is intended to convert the $1 argument passed to a body handler to a regular MFL string. For more information about its use, see body handler.

Built-in Function: bool body_has_nulls (pointer text, number count)

Returns ‘True’ if first count bytes of the string pointed to by text contain ASCII NUL characters.

Example:

prog body
do
  if body_has_nulls($1, $2)
    reject
  fi
done