Multipart.getPart

Gets the indicated body part from @multipart.

class Multipart
bool
getPart

Parameters

part int

the part number to get (counting from 0)

headers MessageHeaders

return location for the MIME part headers

body_ Buffer

return location for the MIME part body

Return Value

Type: bool

%TRUE on success, %FALSE if @part is out of range (in which case @headers and @body won't be set)

Meta

Since

2.26