reformime - experimental MIME utility
SYNOPSIS
reformime [options] ...
DESCRIPTION
reformime is an experimental set of MIME functions that's new to
maildrop release 0.60. WARNING - this is extremely new code. Bang at
it, and see what happens.
reformime expects to see an RFC-822 compliant message on standard
input.
If no options are given, reformime prints MIME structure of the
message. The output will consist of so-called "MIME reference tags", one
per line. For example, you might see the following output:
1
1.1
1.2
This tells you that the message contains two different MIME sections. The
first line will always contain "1", which refers to the entire message,
which happens to be a multipart/mixed message. "1.1" refers to
the first section of the message, which happens to be text/plain
section. "1.2" refers to the second section of the message, which happens
to be an application/octet-stream section. This is a typical situation.
If the message is not a MIME message, or it does not contain any attachments,
you will see a rather boring
1
If the first part of the message was itself a multipart/alternative
section, you would see the following instead:
1
1.1
1.1.1
1.1.2
1.2
OPTIONS
-
-e - extract the contents of the indicated MIME section, and display it
on standard output. The -s option is required when -e is specified. If
the -e option is used, the standard input to reformime MUST be a file,
not a pipe. If the indicated section uses either the base64 or
quoted-printable encoding method, reformime automatically decodes
it. In this case you're better off redirecting the standard output into
a file.
-
-i - display MIME information for each section. reformime will display
the contents of the Content-Type: header, any encoding used, and the character
set. reformime will also display at which byte offset in the message each
section starts and ends (and where the actual contents of the section start,
skipping all the headers).
-
-s section - display MIME information for this section only. section is
a MIME specification tag. The -s option is required if -e is also specified,
and is optional with -i.
SEE ALSO
maildrop(1), maildropfilter(1),
reformail(1),
egrep(1), grep(1), sendmail(8)