mmforward

Section: Misc. Reference Manual Pages ()
Index Return to Main Contents
 

NAME

mmforward - re-assemble multi-part messages  

SYNOPSIS

| /usr/local/mm/mmforward |
/usr/local/mm/mmsavepart file id partnum totalnum
 

DESCRIPTION

The mmforward script takes a message on stdin. It looks in the headers to see if the message is a MIME message with the content type message/partial. If it does find one the message is simply sent to stdout. If a message/partial message is found metamail is called to process the message. Metamail will usually in turn call mmsavepart to first reassemble the message and eventually when all of the parts are received to forward a new message to the user containing an external reference to the message. The mmsavepart program will squirrel away the body of a MIME-format message that is of type "message/partial" for later use. When it is called on the last piece the resulting message is saved into a file and a message with a content type of message/external-message is sent to the user. Mmsavepart is intended to be called by metamail via a mailcap entry like the following in /usr/local/lib/mm/fwd.mailcap:
        message/partial;            /usr/local/lib/mm/mmsavepart %s %{id} %{number} %{total}
To use mmforward place something like the following in your .forward file:
        | /usr/local/lib/mm/mmforward | filter 
There are several programs that can handle the mailbox delivery. For example filter from the ELM mail package. The deliver program or procmail will also work.  

SEE ALSO

filter(1), metamail(1), mmshowpart(1), splitmail(1)  

BUGS

The parts are squirrelled away on /tmp, which means that /tmp can fill up if you never get the remaining parts. When the message is finally displayed, via metamail, the parts are all discarded, which might also be seen as a bug by some...  

COPYRIGHT

 

AUTHOR

Stuart Lynne
Adapated from showpart(1) by Nathaniel S. Borenstein, Bellcore


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

This document was created by man2html, using the manual pages.
Time: 06:43:06 GMT, May 19, 2025