Subject: HOW DO YOU WORK MIME?

From: Glenn Graham <[email-masked]>
Date: Tue, 6 Jun 1995 03:59:17 -0700

Does anybody out there know how to take a mime file and 
make it readable using pine 3.91?

Please reply
`

Thanks.....Glenn

---

From: [email-masked] (Trey Harris)
Date: 6 Jun 1995 19:53:01 GMT

In article <Pine.SOL.3.91.950606035805.17124X-100000@fun>,
>make it readable using pine 3.91?

MIME is not a file format but an encapsulation method.  As far as you are 
concerned, to add a document for encapsulation in a mail message via 
MIME, simply type the name of the document in the "Attchmnt:" header, it 
will be encoded for you.

Or, if you don't remember the name of the file, you can press ^T 
(control-T) and choose the file from a list.

The person at the other end will be able to extract the document from 
your mail message automatically if they are using Pine or another 
MIME-aware mail user agent.  If they are not, they can use the munpack 
utility to get at the data.
-- 
Trey Harris                              http://sunsite.unc.edu/harris
  System Administrator, Project Isis, Office of Information Technology
                       The University of North Carolina at Chapel Hill

---

From: Don Sugarman <[email-masked]>
Date: Wed, 7 Jun 1995 20:00:51 -0400 (EDT)

> make it readable using pine 3.91?
I presume you are receiving MIMEd attachments that are not recognized by 
Pine as attachments.  This could be because the sending mail user agent 
(MUA) is not providing the necessary separator.

Anyway, you can save the MIMEd file and decode it using munpack.  If you 
need a copy of munpack, let me know and I will email you a copy attached 
to a Pine message.  Let me know if you need the SUN Unix or DOS version.

Don Sugarman
[email-masked]

---

From: "G. Graham" <[email-masked]>
Date: Wed, 7 Jun 1995 23:02:05 -0700 (PDT)

es please, mail me a copy.  I'm usinf sunos Unix. 
Thanks...and if tghis helps you my own computer is a 386 sx

On Wed, 7 Jun 1995, Don Sugarman wrote:

> Date: Wed, 7 Jun 1995 20:00:51 -0400 (EDT)
> From: Don Sugarman <[email-masked]>
> To: Glenn Graham <[email-masked]>
> Cc: [email-masked]
> Subject: Re: HOW DO YOU WORK MIME?
>

---

From: Don Sugarman <[email-masked]>
Date: Thu, 8 Jun 1995 07:29:46 -0400 (EDT)

On Wed, 7 Jun 1995, G. Graham wrote:

> Thanks...and iftghis helps you my own computer is a 386 sx 
> 

I've attached mpack and munpack (sun executables) and corresponding man
pages.  Since you are actually running on your Unix server, it doesn't
matter that your own computer is a 386. 

Good luck.
Don Sugarman

.TH MPACK 1
.SH NAME
mpack \- pack a file in MIME format
.SH SYNOPSIS
.B mpack
[
.B \-s
.I subject
]
[
.B \-d
.I descriptionfile
]
[
.B \-m
.I maxsize
]
[
.B \-c
.I content-type
]
.I file
.I "address \&..."
.br
.B mpack
[
.B \-s
.I subject
]
[
.B \-d
.I descriptionfile
]
[
.B \-m
.I maxsize
]
[
.B \-c
.I content-type
]
.B \-o
.I outputfile
.I file
.br
.B mpack
[
.B \-s
.I subject
]
[
.B \-d
.I descriptionfile
]
[
.B \-m
.I maxsize
]
[
.B \-c
.I content-type
]
.B \-n
.I newsgroups
.I file
.SH DESCRIPTION
The 
.I 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.
.PP
.SH OPTIONS
.TP
.BI \-s " subject"
Set the 
.B Subject
header field to
.IR Subject .
By default,
.B mpack
will prompt for the contents of the subject header.
.TP
.BI \-d " descriptionfile
Include the contents of the file
.I descriptionfile
in an introductory section at the beginning of the first
generated message.
.TP
.BI \-m " maxsize"
Split the message (if necessary) into partial messages, each not
exceeding
.I maxsize
characters.  The default limit is the value of the 
.B SPLITSIZE
environment variable, or no limit if the environment variable
does not exist.
Specifying a 
.I maxsize
of 0 means there is no limit to the size of the generated message.
.TP
.BI \-c " content-type"
Label the included file as being of MIME type
.IR content-type ,
which must be a subtype of 
.BR application ,
.BR audio ,
.BR image ,
or 
.BR video .
If this switch is not given,
.B mpack
examines the file to determine its type.
.TP
.BI \-o " outputfile"
Write the generated message to the file
.IR outputfile .
If the message has to be split, the partial messages will instead be
written to the files
.IR outputfile .01,
.IR outputfile .02,
etc.
.TP
.BI \-n " newsgroups"
Post the generated message(s) to the comma-separated netnews
.IR newsgroups .
.TP
.I file
Encode the named
.IR file .
.TP
.I "address \&..."
Mail the generated messages to the specified addresses.
.SH ENVIRONMENT
.TP
.B TMPDIR
Directory to store temporary files.  Default is /usr/tmp.
.TP
.B SPLITSIZE
Default value of the -m switch.
.TH MUNPACK 1
.SH NAME
munpack \- unpack messages in MIME or split-uuencode format
.SH SYNOPSIS
.B munpack
[
.B \-f
]
[
.B \-q
]
[
.B \-t
]
[
.B \-C
.I directory
]
[
.I "filename \&..."
]
.SH DESCRIPTION
The 
.I munpack
program reads each RFC-822 message
.I filename
and writes all non-text MIME parts or split-uuencoded files as files.
If no filename argument is given, 
.B munpack
reads from standard input.
.LP
If the message suggests a file name to use for the imbedded part, that
name is cleaned of potential problem characters and used for the
output file.  If the suggested filename includes subdirectories, they
will be created as necessary.
If the message does not suggest a file name, the names
"part1", "part2", etc are used in sequence.
.LP
If the imbedded part was preceded with textual information, that
information is also written to a file.  The file is named the same as
the imbedded part, with any filename extension replaced with ".desc".
.SH OPTIONS
.TP
.B \-f
Force overwriting of existing files.  If a message suggests a file
name of an existing file, the file will be overwritten.  Without this
flag,
.B
munpack
appends ".1", ".2", etc to find a nonexistent file.
.TP
.B \-q
Be quiet.  Supresses messages about saving partial messages and about
messages with no interesting information.
.TP
.B \-t
Also write the text MIME parts of multipart messages as files.  By
default, text parts that do not have a filename parameter do not get
unpacked.  This option effectively disables the ".desc" file feature
for MIME messages.
.TP
.BI \-C " directory"
Change the current directory to 
.I directory
before reading any files.  This is useful when invoking 
.B munpack
from a mail or news reader.
.SH "DECODING MIME"
.LP
To decode a MIME message, first save it to a text file.  If possible,
save it with all headers included.  
.I Munpack
can decode some MIME files
when the headers are missing or incomplete, other files it cannot
decode without having the information in the headers.  In general,
messages which have a statement at the beginning that they are in MIME
format can be decoded without the headers.  Messages which have been
split into multiple parts generally require all headers in order to be
reassembled and decoded.
.LP
Some LAN-based mail systems and some mail providers (including America
Online, as of the writing of this document) place the mail headers at
the bottom of the message, instead of at the top of the message.  If
you are having problems decoding a MIME message on such a system, you
need to convert the mail back into the standard format by removing the
system's nonstandard headers and moving the standard Internet headers
at the top of the message (separated from the message body with a
blank line).
.LP
There must be exactly one message per file.  
.I Munpack
cannot deal with
multiple messages in a single file, to decode things correctly it must
know when one message ends and the next one begins.
.LP
To decode a message, run the command:
.IP
.IB munpack " file"
.LP
where "file" is the name of the file containing the message.  More than
one filename may be specified,
.I munpack
will try to decode the message in
each file.  For more information on ways to run
.IR munpack ,
see the section "OPTIONS" above.
.SH ENVIRONMENT
.TP
.B TMPDIR
Directory to store temporary files.  Default is /usr/tmp.
.SH FILES
.TP
.B $TMPDIR/m-prts-$USER/
Directory used to store partial messages awaiting reassembly.

---

From: [email-masked] (Rick Troxel)
Date: Mon, 12 Jun 1995 17:00:35 GMT

In article <Pine.SUN.3.91.950607195537.26017C-100000@mmpcs1>
[email-masked] (Don Sugarman) writes:

Here's an additional hint we have added to our local copy of the
munpack(1) man page:

     NOTES
          If a MIME message is forwarded using a non-MIME compliant
          mailer, its MIME encoding will not be recognized.  To fix
          this, save the message as a file and edit the file.  Look for
          the first Content-Type: mail header, and copy that header into
          the first "paragraph" of mail headers, somewhere after its
          first line.
--
Rick Troxel     [email-masked]     [email-masked]     301/496-4823
///////////////////////////////////////////////////////////////////////////
     All effort and exertion put forth by man from the fullness of his
     heart is worship, if it  is prompted  by the  highest motives and
     the will to do service to humanity.                 --Abdu'l-Baha