msg:makeBoundary

March 26, 2020 Contributors

Name

msg:makeBoundary — Generates a unique boundary string

Synopsis

msg:makeBoundary(...);

...: mixed

Description

The MIME specification requires that each boundary be a unique string that is not a common prefix/substring of any other boundary in the complete message. This function generates a unique boundary string by assessing the boundaries defined for all the parts in the current message, in addition to those defined in the mime tree for each mime part passed to it as a parameter. This function is called by makeContainer when its boundary parameter is nil.

Enable this function with the statement require('msys.extended.message');.

The ellipsis (…) in the parameter list indicate that this function has any number of arguments.

See Also

msg:makeContainer