packf(1mh)
NAME
packf − compress a folder into a single file
SYNTAX
packf [+folder] [msgs] [−file name] [−help]
DESCRIPTION
Each message in a folder is normally stored as a separate file. The packf command takes all messages from the current folder and copies them to a single specified file. Each message in the file is separated by four <CTRL-A’s> and a newline.
You can specify a folder other than the current folder using by the +folder argument. If you do not want all the messages in a folder to be packed into one file, you can specify a number of messages or a range of messages with message numbers. The following example show messages one and three, and one through three in the folder +lrp being packed into a file.
$ packf +lrp 1 3
Create file "/machine/disk/username/msgbox"? y
$ packf +lrp 1-3
OPTIONS
If you specify an existing file using the −file filename switch then the specified messages will be appended to the end of that file, otherwise a new file will be created and the messages appended. If you do not specify a filename, packf will create one for you.
If a folder is given, it will become the current folder. The first message packed will become the current message.
The default settings for packf are:
+folder defaults to the current folder
msgs defaults to all
−file ./msgbox
FILES
| $HOME/.mh_profile | The user profile |
PROFILE COMPONENTS
| Path: | To determine the user’s MH directory |
| Current-Folder: | To find the default current folder |
| Msg-Protect: | To set mode when creating a new file |