Returns the message as file-handle.
Returns the whole message as set of lines. In LIST context, copies of the lines are returned. In SCALAR context, a reference to an array of lines is returned.
Print the structure of a message to the specified FILEHANDLE or the
selected filehandle. When explicitly undef
is specified as handle,
then the output will be returned as string.
The message's subject and the types of all composing parts are displayed.
INDENT specifies the initial indentation string: it is added in front of each line. The INDENT must contain at least one white-space.
my $msg = ...; $msg->printStructure(\*OUTPUT); $msg->printStructure; my $struct = $msg->printStructure(undef); # Possible output for one message: multipart/mixed: forwarded message from Pietje Puk (1550 bytes) text/plain (164 bytes) message/rfc822 (1043 bytes) multipart/alternative: A multipart alternative (942 bytes) text/plain (148 bytes, deleted) text/html (358 bytes)
Returns the whole message as string.