1 |
edhill |
1.1 |
.TH MPACK 1 |
2 |
|
|
.SH NAME |
3 |
|
|
mpack \- pack a file in MIME format |
4 |
|
|
.SH SYNOPSIS |
5 |
|
|
.B mpack |
6 |
|
|
[ |
7 |
|
|
.B \-s |
8 |
|
|
.I subject |
9 |
|
|
] |
10 |
|
|
[ |
11 |
|
|
.B \-d |
12 |
|
|
.I descriptionfile |
13 |
|
|
] |
14 |
|
|
[ |
15 |
|
|
.B \-m |
16 |
|
|
.I maxsize |
17 |
|
|
] |
18 |
|
|
[ |
19 |
|
|
.B \-c |
20 |
|
|
.I content-type |
21 |
|
|
] |
22 |
|
|
.I file |
23 |
|
|
.I "address \&..." |
24 |
|
|
.br |
25 |
|
|
.B mpack |
26 |
|
|
[ |
27 |
|
|
.B \-s |
28 |
|
|
.I subject |
29 |
|
|
] |
30 |
|
|
[ |
31 |
|
|
.B \-d |
32 |
|
|
.I descriptionfile |
33 |
|
|
] |
34 |
|
|
[ |
35 |
|
|
.B \-m |
36 |
|
|
.I maxsize |
37 |
|
|
] |
38 |
|
|
[ |
39 |
|
|
.B \-c |
40 |
|
|
.I content-type |
41 |
|
|
] |
42 |
|
|
.B \-o |
43 |
|
|
.I outputfile |
44 |
|
|
.I file |
45 |
|
|
.br |
46 |
|
|
.B mpack |
47 |
|
|
[ |
48 |
|
|
.B \-s |
49 |
|
|
.I subject |
50 |
|
|
] |
51 |
|
|
[ |
52 |
|
|
.B \-d |
53 |
|
|
.I descriptionfile |
54 |
|
|
] |
55 |
|
|
[ |
56 |
|
|
.B \-m |
57 |
|
|
.I maxsize |
58 |
|
|
] |
59 |
|
|
[ |
60 |
|
|
.B \-c |
61 |
|
|
.I content-type |
62 |
|
|
] |
63 |
|
|
.B \-n |
64 |
|
|
.I newsgroups |
65 |
|
|
.I file |
66 |
|
|
.SH DESCRIPTION |
67 |
|
|
The |
68 |
|
|
.I mpack |
69 |
|
|
program encodes the |
70 |
|
|
the named file in one or more MIME messages. |
71 |
|
|
The resulting messages are mailed to one or more recipients, |
72 |
|
|
written to a named file or set of files, or posted to a set of |
73 |
|
|
newsgroups. |
74 |
|
|
.PP |
75 |
|
|
.SH OPTIONS |
76 |
|
|
.TP |
77 |
|
|
.BI \-s " subject" |
78 |
|
|
Set the |
79 |
|
|
.B Subject |
80 |
|
|
header field to |
81 |
|
|
.IR Subject . |
82 |
|
|
By default, |
83 |
|
|
.B mpack |
84 |
|
|
will prompt for the contents of the subject header. |
85 |
|
|
.TP |
86 |
|
|
.BI \-d " descriptionfile |
87 |
|
|
Include the contents of the file |
88 |
|
|
.I descriptionfile |
89 |
|
|
in an introductory section at the beginning of the first |
90 |
|
|
generated message. |
91 |
|
|
.TP |
92 |
|
|
.BI \-m " maxsize" |
93 |
|
|
Split the message (if necessary) into partial messages, each not |
94 |
|
|
exceeding |
95 |
|
|
.I maxsize |
96 |
|
|
characters. The default limit is the value of the |
97 |
|
|
.B SPLITSIZE |
98 |
|
|
environment variable, or no limit if the environment variable |
99 |
|
|
does not exist. |
100 |
|
|
Specifying a |
101 |
|
|
.I maxsize |
102 |
|
|
of 0 means there is no limit to the size of the generated message. |
103 |
|
|
.TP |
104 |
|
|
.BI \-c " content-type" |
105 |
|
|
Label the included file as being of MIME type |
106 |
|
|
.IR content-type , |
107 |
|
|
which must be a subtype of |
108 |
|
|
.BR application , |
109 |
|
|
.BR audio , |
110 |
|
|
.BR image , |
111 |
|
|
or |
112 |
|
|
.BR video . |
113 |
|
|
If this switch is not given, |
114 |
|
|
.B mpack |
115 |
|
|
examines the file to determine its type. |
116 |
|
|
.TP |
117 |
|
|
.BI \-o " outputfile" |
118 |
|
|
Write the generated message to the file |
119 |
|
|
.IR outputfile . |
120 |
|
|
If the message has to be split, the partial messages will instead be |
121 |
|
|
written to the files |
122 |
|
|
.IR outputfile .01, |
123 |
|
|
.IR outputfile .02, |
124 |
|
|
etc. |
125 |
|
|
.TP |
126 |
|
|
.BI \-n " newsgroups" |
127 |
|
|
Post the generated message(s) to the comma-separated netnews |
128 |
|
|
.IR newsgroups . |
129 |
|
|
.TP |
130 |
|
|
.I file |
131 |
|
|
Encode the named |
132 |
|
|
.IR file . |
133 |
|
|
.TP |
134 |
|
|
.I "address \&..." |
135 |
|
|
Mail the generated messages to the specified addresses. |
136 |
|
|
.SH ENVIRONMENT |
137 |
|
|
.TP |
138 |
|
|
.B TMPDIR |
139 |
|
|
Directory to store temporary files. Default is /usr/tmp. |
140 |
|
|
.TP |
141 |
|
|
.B SPLITSIZE |
142 |
|
|
Default value of the -m switch. |