mime-construct --version (return code: 0)
mime-construct 1.11
mime-construct --help (return code: 255)
usage: mime-construct switch...
Global settings:
--debug turn debugging on
--help show this and then die
--output don't mail, output to stdout (loses bcc info)
--subpart generate subpart rather than whole message (turns
on --output, changes other semantics a bit)
--version show the version number and exit (by itself only)
Main header, can appear anywhere:
--bcc address add a bcc recipient
--cc address add a cc recipient
--embedded-to send to recipients already listed in the header
--header x add arbitrary primary headers
--multipart x specify multipart content type and options
--prelude x add to multipart prelude text
--subject x specify subject
--to address add a to recipient
Per-part header, only affects next part output:
--attachment name specify attachment disposition with given file name
--encoding x specify encoding for next part
--part-header x add arbitrary headers for next part
--type x specify content type for next part
Part output switches:
--file path output a part whose contents come from path
--file-auto path same, but also set the Content-Type from the
path's extention (requires MIME::Types)
--file-attach path same, but also set --attachment to the file's base name
--attach path synonym for --file-attach
--string str output a part whose contents are str
--body str synonym for --string
Subpart output switches:
--subpart-file path
--subpart-file-auto path
--subpart-file-attach path
--subpart-string str
Same as previous two, but path or str contains a subpart. It can
contains headers, and you can't specify a --type or --encoding for
it here (they should be supplied when it is generated). Normally
it will have been generated by mime-construct with the --subpart switch.
The default content type is text/plain. The default encoding is chosen
based on the body. The default multipart type is multipart/mixed.
See the man page or `perldoc mime-construct' for the full documentation.