REFILE(1m,C) AIX Commands Reference REFILE(1m,C) ------------------------------------------------------------------------------- refile PURPOSE Files messages in other folders. SYNTAX one of +------------+ +-| -draft |----------------------------------------------------+ | | -file file | | refile -| +------------+ |-> | +----------------+ +-------- cur -------------------------------+ | +-| |-| +----------- all ------------------------+ |-+ +- -src +folder -+ +-| +----------- sequence -----------+ |-+ +---| one of |---+ ^ | +-------+ +------------------+ | | | +-| num |-| one of |-+ | | | first | |1+--------------+ | | | | prev | +-| :num -prev |-+ | | | cur | | :+num -cur | | | | . | | :-num -. | | | | next | | -num -next | | | | last | | -first -last | | | +-------+ +--------------+ | +------------------------------------+ +-- -nolink --+ +-- -nopreserve --+ >---| one of |---| one of |--- +folder ---| | +---------+ | | +-------------+ | ^ | +-| -link |-+ +-| -preserve |-+ +-----------+ | -nolink | | -nopreserve | +---------+ +-------------+ refile --- -help ---| ----------------- 1 Do not put a blank between these items. DESCRIPTION Processed July 12, 1991 REFILE(1m,C) 1 REFILE(1m,C) AIX Commands Reference REFILE(1m,C) The refile command is used to copy and move messages to other files. The refile command is part of the Message Handling (MH) package and can be used with MH commands. The refile command copies messages or moves messages from one folder to another folder. If a destination folder does not exist, refile asks if it should create the folder. FLAGS -draft Copies the current draft message from your mail directory. -file file Copies the specified file. The file must be in valid message format. (Use the inc command to incorporate new messages and to format them correctly.) +folder Copies the messages to the specified folder. Any number of folders can be specified. -help Displays help information for the command. -link Leaves the messages in the source folder or file after they are copied. -nolink Removes the messages from the source folder or file after they are copied. This flag is the default. -nopreserve Renumbers the messages that are copied. Renumbering begins with the number that is one higher than the last message in the destination folder. This is the default. -preserve Preserves the message numbers of the messages that are copied. If messages with those numbers already exist, refile issues an error message and does not alter the contents of the folders. -src +folder msgs Specifies the messages to be copied. You can use the following message references when specifying msgs: num first prev cur . next last all sequence The default message is the current message in the current folder. If a folder is specified, it becomes the current folder. If the -link flag and all are used, the current message does not change. Otherwise, if a message is specified, that message becomes the current message. PROFILE ENTRIES Current-Folder: Sets your default current folder. Processed July 12, 1991 REFILE(1m,C) 2 REFILE(1m,C) AIX Commands Reference REFILE(1m,C) Folder-Protect: Sets the protection level for your new folder directories. Path: Specifies your user_mh_directory. rmmproc: Specifies the program used to remove messages from a folder. FILES $HOME/.mh_profile The MH user profile. RELATED INFORMATION See the mh-profile file in AIX Operating System Technical Reference. See "Overview of the Message Handling Package" in Managing the AIX Operating System. See Chapter 18 of the AIX Programming Tools and Interfaces for general information on using commands in an MBCS environment. Processed July 12, 1991 REFILE(1m,C) 3