Storing Message Parts

The mhn -store option stores message parts (all parts if -part isn't specified) in ``native'' (decoded) format.

Here is example of an mhn -store command:

mhn 11 -part 3.3 -store
This stores part 3.3 of message number 11 into a file. The name and location of the file may be specified by profile entries like these:
mhn-storage:                      /usr/tmp
mhn-store-application/PostScript: %m%P.ps
mhn-store-audio/basic:            %m%P.u
mhn-store-audio/x-next:           %m%P.au
mhn-store-text:                   %m%P.txt

The mhn-storage profile entry specifies the directory in which to store files. The default is the current working directory.

In mhn-store- profile entries, either a file name formatting string or a program invocation (beginning with the shell pipe symbol, ``|'') may be specified, as in this example:

mhn-store-audio/basic: | /usr/demo/SOUND/raw2audio
                            -e ulaw -s 8000 -c 1
                            > %m%P.au

This example is for Sun SPARCstations. The command runs the audio data through a program that adds descriptive information to the audio data before storing it into a file. A more comprehensive explanation of what's going on is given in appendix [*].

Escape codes beginning with ``%'' specify what the file names are to look like.

Given the command at the beginning of this section and the previous profile entry for storing audio/basic parts, the %m%P.au specification refers to a file named 11.3.3.au.

These are the escape codes for mhn-store- profile entries:


%m   message number 

%P .part
%p part
%s subtype

There are other file name formatting options described in mhn(1).