📄 mark.1mh
字号:
.TH mark 1mh.SH Namemark \- mark messages.SH Syntax.NXR "mark command".NXR "message sequences".B mark[.I +folder] [.I msgs] [.I options].\".\".\".\".SH DescriptionUse the .PN markcommand to assign a name to a sequence of messages within the current folder. .PPA sequence is a number of messages that are grouped togetherunder a name.You can then use that name with any MH command instead of a message number,to perform the command on all the messages in the sequence.You can still continue to handle messages individuallywhen they belong to a sequence, just as you did before.Sequences are specific to a particular folder.You can use the same name for sequences in different folderswithout causing problems..PPBy default, .PN markoperates on the sequences in the current folder.You can specify another folder by using the.I +folder argument..PPWhen you create a sequence using.PN mark ,the ordering of messages within the folder remains unchanged. So if messages 3, 7 and 9 are put into the sequence, they are still numbered as messages 3, 7 and 9 when you use .PN scanto list the contents of the folder.The.PN scancommand does not show you what sequences messages belong to;you must use.PN markto find this information..PPThe .PN markcommand is used only to modify sequences, not messages.If you delete a message from a sequence using .PN mark ,it remains in the folder.However, when a message is deleted or moved from a folder (for example, using.MS rmm 1mhor.MS refile 1mh ),it is removed from all the sequences in that folder..\".\".\".\".SH Options.IP "\-add" 10Adds messages to sequences.The.PN markcommand takes the messages specified by the .I msgs argument, and adds them to the sequence named by using the .B \-sequence.I nameoption.If no .I msgs argument is given, the current message is added to the sequence.This option can also be used in conjunction with the .B \-zerooption..IPThis option cannot be used in conjunction with the.B \-delete or .B \-listoptions.If you attempt to use two or more of these options together,.PN marktakes the last occurrence of any of them,and ignores any previous occurrences..\".IP "\-delete" 10Deletes messages from sequences.The.PN mark command removes the messages specified by the.I msgs argument from the named sequences.As with .BR \-add ,the sequences are specified using the.B \-sequence.I nameoption.If no .I msgs argument is given, the current message is removed from the named sequences.This option can also be used in conjunction with the .B \-zero option..IPThis option cannot be used in conjunction with the.B \-addor.B \-listoptions.If you attempt to use two or more of these options together,.PN marktakes the last occurrence of any of them,and ignores any previous occurrences..\".IP "\-help" 10Prints a list of the valid options to this command..\".IP "\-list" 10Lists the sequences defined for the current folder and the messages associated with those sequences.If you wish to list only particular sequences in a folder,you can specify them by using the .B \-sequence.I nameoption.If you do not use this option, .PN mark lists all the sequences in the current folder.You can also list sequences in another folder by using the .I +folderargument..IPThis option cannot be used in conjunction with the.B \-addor.B \-deleteoptions.If you attempt to use two or more of these options together,.PN marktakes the last occurrence of any of them,and ignores any previous occurrences..IPThe.PN markcommand automatically lists the sequences in the folderunless you use the .B \-addor.B \-deleteoptions, or unless you give a .I msgs argument..\".IP "\-public" 10.PD 0.IP "\-nopublic" 10.PDIndicates that the sequence being created should be made readable for other MH users.When you use the .B \-addoption to create a sequence, the.B \-publicoption makes the sequence public, that is, readable to other MH users.By contrast, the .B \-nopublicoption indicates that the sequence should be private,or exclusive to your own MH environment..\".IP "\-sequence \fIname..." 10Specifies the sequence(s) you wish to list or modify.You use this option in conjunction with the.BR \-add ,.BR \-delete ,and .B \-listoptions, to name the sequences you wish to add messages to, delete messages from, or list.You can name more than one sequence by listing the nameswith a space separating them; you do not need to repeat.B \-sequencebefore each sequence name..\".IP "\-zero" 10.PD 0.IP "\-nozero" 10.PDModifies the behavior of the .B \-addand .B \-deleteoptions..IP If you use the .B \-zerooption with.BR \-add ,all messages are removed from the named sequencebefore the new messages are added to it.This means that the sequence contains only the new messages that you have just added.The.B \-nozerooption simply adds the new messages to the existing sequence,without deleting any of the messages already in the sequence.This is the default behavior..IPIf you use .B \-zero with .BR \-delete ,all of the messages in the folder are added to the named sequence,and then the messages you specify are deleted from the sequence.This means that the sequence contains all the messages in the folderexcept those that you have named.The.B \-nozerooption simply removes the messages you specify from the sequence,leaving the rest of the contents of the sequence intact.This is the default behavior..\".PPThe defaults for this command are:.IP.I +folderdefaults to the current folder.br.I msgsdefaults to the current message (or all messages if .B \-listis specified).br.B \-addif a .I msgsargument is specified, .B \-listotherwise.br.B \-nopublicif the folder is read-only, .B \-publicotherwise.br.B \-nozero.\".\".\".\".SH RestrictionsMH allows a maximum of ten sequences in any folder..PPThe names of sequences must consist entirely of alphabeticor numeric characters, and must begin with an alphabetic character.Punctuation is not allowed.In addition, certain names are reserved for use by MH.These include\f(CWfirst\fR,\f(CWnext\fR,\f(CWprev\fR,and\f(CWcur\fR..\".\".\".\".SH ExamplesThe first example shows how .PN mark lists all the sequences in a named folder:.EX% \f(CBmark\f(CWcur: 20Admail: 1 5 9-12test: 3-7.EEThis output is identical to that produced by using the .B \-listoption..PPThe next example creates a sequence called \f(CWodd\fR,containing the first five odd-numbered messages:.EX% \f(CBmark -add -sequence odd 1 3 5 7 9\f(CW% \f(CBmark\f(CWcur: 20Admail: 1 5 9-12odd: 1 3 5 7 9test: 3-7.EE.PPThe next example deletes message 3 from the sequences \f(CWtest\fR and \f(CWodd\fR:.EX% \f(CBmark -delete -sequence test odd 3\f(CW% \f(CBmark\f(CWcur: 20Admail: 1 5 9-12odd: 1 5 7 9test: 4-7.EE.PPThe final example illustrates how the .B \-zerooption works with.BR \-add .All messages are first removed from the sequence \f(CWtest\fR,and then messages 1 to 3 are added.The result is that \f(CWtest\fR contains only messages 1 to 3:.EX% \f(CBmark -add -zero -sequence test 1-3\f(CW% \f(CBmark\f(CWcur: 20Admail: 1 5 9-12odd: 1 5 7 9test: 1-3.EE.\".\".\".\".SH Profile Components.TS tab(+);l l.Path:+To determine your Mail directory.TE.\".\".\".\".SH Files.TP 10.PN $HOME/.mh_profileThe user profile..\".\".\".\".SH See Alsofolder(1mh), pick(1mh), sortm(1mh)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -