mpack - pack a file in MIME format
Contents
Description
The mpack program encodes the the named file in one or more MIME messages. The resulting messages are
mailed to one or more recipients, written to a named file or set of files, or posted to a set of
newsgroups.
Environment
TMPDIR Directory to store temporary files. Default is /tmp.
SPLITSIZE
Default value of the -m switch.
Name
mpack - pack a file in MIME format
Options
-a Set the Content-Disposition to attachment. If -a is not used the Content-Disposition is inline.
-ssubject
Set the Subject header field to Subject. By default, mpack will prompt for the contents of the
subject header.
-ddescriptionfile
Include the contents of the file descriptionfile in an introductory section at the beginning of
the first generated message.
-mmaxsize
Split the message (if necessary) into partial messages, each not exceeding maxsize characters.
The default limit is the value of the SPLITSIZE environment variable, or no limit if the
environment variable does not exist. Specifying a maxsize of 0 means there is no limit to the
size of the generated message.
-ccontent-type
Label the included file as being of MIME type content-type, which must be a subtype of
application, audio, image, or video. If this switch is not given, mpack examines the file to
determine its type.
-ooutputfile
Write the generated message to the file outputfile. If the message has to be split, the partial
messages will instead be written to the files outputfile.01, outputfile.02, etc.
-nnewsgroups
Post the generated message(s) to the comma-separated netnews newsgroups.
file Encode the named file.
address...
Mail the generated messages to the specified addresses.
Reporting Bugs
Send all bug reports to mpack-bugs@andrew.cmu.edu.
MPACK(1)
Synopsis
mpack [ -a ] [ -ssubject ] [ -ddescriptionfile ] [ -mmaxsize ] [ -ccontent-type ] fileaddress...mpack [ -a ] [ -ssubject ] [ -ddescriptionfile ] [ -mmaxsize ] [ -ccontent-type ] -ooutputfilefilempack [ -a ] [ -ssubject ] [ -ddescriptionfile ] [ -mmaxsize ] [ -ccontent-type ] -nnewsgroupsfile
