| 1 |
Author: Bjarni Ingi Gislason <[email protected]> |
| 2 |
Description: editorial changes |
| 3 |
|
| 4 |
--- a/unixpk.man |
| 5 |
+++ b/unixpk.man |
| 6 |
@@ -73,22 +73,22 @@ mpack \- pack a file in MIME format |
| 7 |
.I newsgroups |
| 8 |
.I file |
| 9 |
.SH DESCRIPTION |
| 10 |
|
| 11 |
+The |
| 12 |
.I mpack |
| 13 |
|
| 14 |
|
| 15 |
+program encodes the |
| 16 |
+named file in one or more MIME messages. |
| 17 |
The resulting messages are mailed to one or more recipients, |
| 18 |
|
| 19 |
|
| 20 |
+written to a named file or set of files, |
| 21 |
+or posted to a set of newsgroups. |
| 22 |
.PP |
| 23 |
.SH OPTIONS |
| 24 |
.TP |
| 25 |
|
| 26 |
+.B \-a |
| 27 |
Set the Content-Disposition to attachment. If \-a is not used |
| 28 |
the Content-Disposition is inline. |
| 29 |
.TP |
| 30 |
.BI \-s " subject" |
| 31 |
|
| 32 |
+Set the |
| 33 |
.B Subject |
| 34 |
header field to |
| 35 |
.IR Subject . |
| 36 |
@@ -103,25 +103,28 @@ in an introductory section at the beginn |
| 37 |
generated message. |
| 38 |
.TP |
| 39 |
.BI \-m " maxsize" |
| 40 |
|
| 41 |
|
| 42 |
+Split the message |
| 43 |
+(if necessary) |
| 44 |
+into partial messages, |
| 45 |
+each not exceeding |
| 46 |
.I maxsize |
| 47 |
|
| 48 |
+characters. The default limit is the value of the |
| 49 |
.B SPLITSIZE |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
+environment variable, |
| 54 |
+or no limit |
| 55 |
+if the environment variable does not exist. |
| 56 |
+Specifying a |
| 57 |
.I maxsize |
| 58 |
of 0 means there is no limit to the size of the generated message. |
| 59 |
.TP |
| 60 |
.BI \-c " content-type" |
| 61 |
Label the included file as being of MIME type |
| 62 |
.IR content-type , |
| 63 |
|
| 64 |
+which must be a subtype of |
| 65 |
.BR application , |
| 66 |
.BR audio , |
| 67 |
.BR image , |
| 68 |
|
| 69 |
+or |
| 70 |
.BR video . |
| 71 |
If this switch is not given, |
| 72 |
.B mpack |
| 73 |
@@ -130,8 +133,8 @@ examines the file to determine its type. |
| 74 |
.BI \-o " outputfile" |
| 75 |
Write the generated message to the file |
| 76 |
.IR outputfile . |
| 77 |
|
| 78 |
|
| 79 |
+If the message has to be split, |
| 80 |
+the partial messages will instead be written to the files |
| 81 |
.IR outputfile .01, |
| 82 |
.IR outputfile .02, |
| 83 |
etc. |
| 84 |
@@ -152,6 +155,6 @@ Mail the generated messages to the speci |
| 85 |
Directory to store temporary files. Default is /tmp. |
| 86 |
.TP |
| 87 |
.B SPLITSIZE |
| 88 |
|
| 89 |
|
| 90 |
+Default value of the \-m switch. |
| 91 |
+.SH REPORTING BUGS |
| 92 |
Send all bug reports to mpack\[email protected]. |
| 93 |
--- a/unixunpk.man |
| 94 |
+++ b/unixunpk.man |
| 95 |
@@ -24,85 +24,99 @@ munpack \- unpack messages in MIME or sp |
| 96 |
.I "filename \&..." |
| 97 |
] |
| 98 |
.SH DESCRIPTION |
| 99 |
|
| 100 |
+The |
| 101 |
.I munpack |
| 102 |
program reads each RFC-822 message |
| 103 |
.I filename |
| 104 |
|
| 105 |
|
| 106 |
+and writes all non-text MIME parts |
| 107 |
+or split-uuencoded files as files. |
| 108 |
+If no filename argument is given, |
| 109 |
.B munpack |
| 110 |
reads from standard input. |
| 111 |
.LP |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
+If the message suggests a file name to use for the imbedded part, |
| 123 |
+that name is cleaned of potential problem characters |
| 124 |
+and used for the output file. |
| 125 |
+If the suggested filename includes subdirectories, |
| 126 |
+they will be created as necessary. |
| 127 |
+If the message does not suggest a file name, |
| 128 |
+the names "part1", "part2", etc.\& are used in sequence. |
| 129 |
+.LP |
| 130 |
+If the imbedded part was preceded with textual information, |
| 131 |
+that information is also written to a file. |
| 132 |
+The file is named the same as the imbedded part, |
| 133 |
+with any filename extension replaced with ".desc". |
| 134 |
.SH OPTIONS |
| 135 |
.TP |
| 136 |
.B \-f |
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
+Force overwriting of existing files. |
| 144 |
+If a message suggests a file name of an existing file, |
| 145 |
+the file will be overwritten. |
| 146 |
+Without this flag, |
| 147 |
+.B munpack |
| 148 |
+appends ".1", ".2", etc.\& to find a nonexistent file. |
| 149 |
.TP |
| 150 |
.B \-q |
| 151 |
|
| 152 |
|
| 153 |
+Be quiet. |
| 154 |
+Suppresses messages about saving partial messages |
| 155 |
+and about messages with no interesting information. |
| 156 |
.TP |
| 157 |
.B \-t |
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
+Also write the text MIME parts of multipart messages as files. |
| 163 |
+By default, |
| 164 |
+text parts |
| 165 |
+that do not have a filename parameter |
| 166 |
+do not get unpacked. |
| 167 |
+This option effectively disables the ".desc" file feature for MIME messages. |
| 168 |
.TP |
| 169 |
.BI \-r " character" |
| 170 |
|
| 171 |
|
| 172 |
+If the suggested filename contains invalid characters, |
| 173 |
+they are replaced with this character. |
| 174 |
+The default replacement character is |
| 175 |
"X". |
| 176 |
.TP |
| 177 |
.BI \-C " directory" |
| 178 |
|
| 179 |
+Change the current directory to |
| 180 |
.I directory |
| 181 |
|
| 182 |
+before reading any files. This is useful when invoking |
| 183 |
.B munpack |
| 184 |
from a mail or news reader. |
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
+.SH DECODING MIME |
| 190 |
+To decode a MIME message, |
| 191 |
+first save it to a text file. |
| 192 |
+If possible, |
| 193 |
+save it with all headers included. |
| 194 |
.I Munpack |
| 195 |
can decode some MIME files |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
+when the headers are missing or incomplete, |
| 212 |
+other files |
| 213 |
+it cannot decode without having the information in the headers. |
| 214 |
+In general, |
| 215 |
+messages which have a statement at the beginning |
| 216 |
+that they are in MIME format |
| 217 |
+can be decoded without the headers. |
| 218 |
+Messages |
| 219 |
+which have been split into multiple parts |
| 220 |
+generally require all headers in order to be reassembled and decoded. |
| 221 |
+.LP |
| 222 |
+Some LAN-based mail systems and some mail providers |
| 223 |
+(including America Online, as of the writing of this document) |
| 224 |
+place the mail headers at the bottom of the message, |
| 225 |
+instead of at the top of the message. |
| 226 |
+If you are having problems decoding a MIME message on such a system, |
| 227 |
+you need to convert the mail back into the standard format |
| 228 |
+by removing the system's nonstandard headers |
| 229 |
+and moving the standard Internet headers at the top of the message |
| 230 |
+(separated from the message body with a blank line). |
| 231 |
.LP |
| 232 |
|
| 233 |
+There must be exactly one message per file. |
| 234 |
.I Munpack |
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
+cannot deal with multiple messages in a single file, |
| 239 |
+to decode things correctly it must know |
| 240 |
+when one message ends and the next one begins. |
| 241 |
.LP |
| 242 |
|
| 243 |
+To decode a message, |
| 244 |
+run the command: |
| 245 |
.IP |
| 246 |
.IB munpack " file" |
| 247 |
.LP |
| 248 |
@@ -121,5 +135,5 @@ Directory to store temporary files. Def |
| 249 |
.TP |
| 250 |
.B $TMPDIR/m-prts-$USER/ |
| 251 |
Directory used to store partial messages awaiting reassembly. |
| 252 |
|
| 253 |
+.SH REPORTING BUGS |
| 254 |
Send all bug reports to mpack\[email protected]. |