Debian Codegraph @

unixunpk.man

raw ◀ ▶
Source reconstructed at patch state 3 of 4 — not the installed (fully patched) source.
4 Debian patches touch this file
1 .TH MUNPACK 1
2 .SH NAME
3 munpack \- unpack messages in MIME or split-uuencode format
4 .SH SYNOPSIS
5 .B munpack
6 [
7 .B \-f
8 ]
9 [
10 .B \-q
11 ]
12 [
13 .B \-t
14 ]
15 [
16 .B \-r
17 .I character
18 ]
19 [
20 .B \-C
21 .I directory
22 ]
23 [
24 .I "filename \&..."
25 ]
26 .SH DESCRIPTION
27 The
28 .I munpack
29 program reads each RFC-822 message
30 .I filename
31 and writes all non-text MIME parts or split-uuencoded files as files.
32 If no filename argument is given,
33 .B munpack
34 reads from standard input.
35 .LP
36 If the message suggests a file name to use for the imbedded part, that
37 name is cleaned of potential problem characters and used for the
38 output file. If the suggested filename includes subdirectories, they
39 will be created as necessary.
40 If the message does not suggest a file name, the names
41 "part1", "part2", etc are used in sequence.
42 .LP
43 If the imbedded part was preceded with textual information, that
44 information is also written to a file. The file is named the same as
45 the imbedded part, with any filename extension replaced with ".desc".
46 .SH OPTIONS
47 .TP
48 .B \-f
49 Force overwriting of existing files. If a message suggests a file
50 name of an existing file, the file will be overwritten. Without this
51 flag,
52 .B
53 munpack
54 appends ".1", ".2", etc to find a nonexistent file.
55 .TP
56 .B \-q
57 Be quiet. Suppresses messages about saving partial messages and about
58 messages with no interesting information.
59 .TP
60 .B \-t
61 Also write the text MIME parts of multipart messages as files. By
62 default, text parts that do not have a filename parameter do not get
63 unpacked. This option effectively disables the ".desc" file feature
64 for MIME messages.
65 .TP
66 .BI \-r " character"
67 If the suggested filename contains invalid characters, they are
68 replaced with this character. The default replacement character is
69 "X".
70 .TP
71 .BI \-C " directory"
72 Change the current directory to
73 .I directory
74 before reading any files. This is useful when invoking
75 .B munpack
76 from a mail or news reader.
77 .SH "DECODING MIME"
78 .LP
79 To decode a MIME message, first save it to a text file. If possible,
80 save it with all headers included.
81 .I Munpack
82 can decode some MIME files
83 when the headers are missing or incomplete, other files it cannot
84 decode without having the information in the headers. In general,
85 messages which have a statement at the beginning that they are in MIME
86 format can be decoded without the headers. Messages which have been
87 split into multiple parts generally require all headers in order to be
88 reassembled and decoded.
89 .LP
90 Some LAN-based mail systems and some mail providers (including America
91 Online, as of the writing of this document) place the mail headers at
92 the bottom of the message, instead of at the top of the message. If
93 you are having problems decoding a MIME message on such a system, you
94 need to convert the mail back into the standard format by removing the
95 system's nonstandard headers and moving the standard Internet headers
96 at the top of the message (separated from the message body with a
97 blank line).
98 .LP
99 There must be exactly one message per file.
100 .I Munpack
101 cannot deal with
102 multiple messages in a single file, to decode things correctly it must
103 know when one message ends and the next one begins.
104 .LP
105 To decode a message, run the command:
106 .IP
107 .IB munpack " file"
108 .LP
109 where "file" is the name of the file containing the message. More than
110 one filename may be specified,
111 .I munpack
112 will try to decode the message in
113 each file. For more information on ways to run
114 .IR munpack ,
115 see the section "OPTIONS" above.
116 .SH ENVIRONMENT
117 .TP
118 .B TMPDIR
119 Directory to store temporary files. Default is /tmp.
120 .SH FILES
121 .TP
122 .B $TMPDIR/m-prts-$USER/
123 Directory used to store partial messages awaiting reassembly.
124 .SH "REPORTING BUGS"
125 Send all bug reports to mpack\[email protected].