SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from Fedora 3 mpack-1.6-2.fc3.rf.i386.rpm

MUNPACK

Section: User Commands (1)
Index 

NAME

munpack - unpack messages in MIME or split-uuencode format 

SYNOPSIS

munpack[-f][-q][-t][-Cdirectory][filename ...] 

DESCRIPTION

The munpackprogram reads each RFC-822 messagefilenameand writes all non-text MIME parts or split-uuencoded files as files.If no filename argument is given, munpackreads from standard input.

If the message suggests a file name to use for the imbedded part, thatname is cleaned of potential problem characters and used for theoutput file. If the suggested filename includes subdirectories, theywill be created as necessary.If the message does not suggest a file name, the names"part1", "part2", etc are used in sequence.

If the imbedded part was preceded with textual information, thatinformation is also written to a file. The file is named the same asthe imbedded part, with any filename extension replaced with ".desc". 

OPTIONS

-f
Force overwriting of existing files. If a message suggests a filename of an existing file, the file will be overwritten. Without thisflag,munpackappends ".1", ".2", etc to find a nonexistent file.
-q
Be quiet. Supresses messages about saving partial messages and aboutmessages with no interesting information.
-t
Also write the text MIME parts of multipart messages as files. Bydefault, text parts that do not have a filename parameter do not getunpacked. This option effectively disables the ".desc" file featurefor MIME messages.
-C directory
Change the current directory to directorybefore reading any files. This is useful when invoking munpackfrom a mail or news reader.
 

DECODING MIME

To decode a MIME message, first save it to a text file. If possible,save it with all headers included. Munpackcan decode some MIME fileswhen the headers are missing or incomplete, other files it cannotdecode without having the information in the headers. In general,messages which have a statement at the beginning that they are in MIMEformat can be decoded without the headers. Messages which have beensplit into multiple parts generally require all headers in order to bereassembled and decoded.

Some LAN-based mail systems and some mail providers (including AmericaOnline, as of the writing of this document) place the mail headers atthe bottom of the message, instead of at the top of the message. Ifyou are having problems decoding a MIME message on such a system, youneed to convert the mail back into the standard format by removing thesystem's nonstandard headers and moving the standard Internet headersat the top of the message (separated from the message body with ablank line).

There must be exactly one message per file. Munpackcannot deal withmultiple messages in a single file, to decode things correctly it mustknow when one message ends and the next one begins.

To decode a message, run the command:

munpack file

where "file" is the name of the file containing the message. More thanone filename may be specified,munpackwill try to decode the message ineach file. For more information on ways to runmunpack,see the section "OPTIONS" above. 

ENVIRONMENT

TMPDIR
Directory to store temporary files. Default is /usr/tmp.
 

FILES

$TMPDIR/m-prts-$USER/
Directory used to store partial messages awaiting reassembly.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
DECODING MIME
ENVIRONMENT
FILES

This document was created byman2html,using the manual pages.