📄 mhl.1mh
字号:
.TH mhl 1mh.SH Namemhl \- produce formatted listings of MH messages.SH Syntax.B mhl[.I options] [.I "files..."].\".\".\".\".SH Description.NXR "mhl command".NXR "Listing formatted messages"The .PN mhlcommand is a program for listing formatted messages,which can be used as a replacement for .PN more ,the default .PN showproc program..PPAs with .PN more ,each of the messages specified as arguments (or the standard input) are output.If more than one message file is specified,you are prompted prior to each one,and a <RETURN> or <EOT> begins the output.<RETURN> clears the screen (if appropriate),and <EOT>, usually <CTRL/D>, suppresses the screen clear.An <INTERRUPT>, usually <CTRL/C>, aborts the current message output,prompting for the next message, if there is one.A <QUIT>, usually <CTRL/E>, terminates the program without generating a core dump..PPThe.PN mhlcommandoperates in two phases:it reads and parses the format file; then it processes each message (file).During the first phase, an internal description of the format is produced as a structured list.In the second phase, this list is traversed for each message,and message information is output according to the instructionscontained in the format file..\".\".SS The Form File mhl.formatThe .PN mhl.formatform file contains information controllingscreen clearing, screen size, wrap-around control, transparent text,component ordering, and component formatting.A list of components that should be ignored may also be specified,and some special components are defined to provide addedfunctionality.Message output is in the order specified by the order in the format file..PPEach line of the .PN mhl.format file has one of the following formats:.EX ;comment :cleartext variable[\fIvariable...\fP] component:[\fIvariable...\fP].EEA line beginning with a semi colon (;) is a comment, and is ignored.A line beginning with a colon (:) is clear text, and is output exactly as it is.A line containing only a colon (:)produces a blank line in the output.A line beginning with \f(CWcomponent:\fR defines the format for the specified component.Remaining lines define the global environment.Examples of these are given below,together with the system default form file..PPIf variables or arguments follow a component,they apply only to that component; otherwise, their effect is global.Since the whole format is parsed before any output processing,the last global switch setting for a variable applies to the whole message,provided that the variable is used in a global context(bell, clearscreen, width, length).All of the current variables and their argumentsare shown in the following table:.PP.TStab(+);l l l._.sp 6pVariable+Type+Semantics.sp 6p_.sp 6pwidth+integer+screen width or component widthlength+integer+screen length or component lengthoffset+integer+positions to indent the componentoverflowtext+string+text to use at the beginning of an++overflow lineoverflowoffset+integer+positions to indent overflow linescompwidth+integer+positions to indent component text++after the first line is outputuppercase+flag+output text of this component in all++upper casenouppercase+flag+do not use uppercaseclearscreen+flag/G+clear the screen prior to each pagenoclearscreen+flag/G+do not clear the screenbell+flag/G+ring the bell at the end of each pagenobell+flag/G+disable bellcomponent+string/L+name to use instead of \f(CWcomponent\fR for++this componentnocomponent+flag+do not output \f(CWcomponent: \fRfor this++componentcenter+flag+center component on line (works for++one-line components only)nocenter+flag+do not centerleftadjust+flag+strip off leading white-space on each++line of textnoleftadjust+flag+do not leftadjustcompress+flag+change newlines in text to spacesnocompress+flag+do not compressformatfield+string+format string for this componentaddrfield+flag+field contains addressesdatefield+flag+field contains dates.sp 6p_.TE.PPTo specify the value of integer-valued and string-valued variables,follow their name with an equals-sign (=) and the value.Integer-valued variables are given decimal values,while string-valued variables are given arbitrary text bracketed bydouble-quotes.If a value is suffixed by \f(CW/G\fR or \f(CW/L\fR,then its value is useful in a global-only or local-only context(respectively).A line of the form:.EX ignores=component,....EEspecifies a list of components which are never output..PPThe component \f(CWMessageName\fRoutputs the actual message name (file name) preceded bythe folder name if one is specified or found in the environment.The format is identical to that produced by the .B \-headeroption to.PN show ..PPThe component \f(CWExtras\fR outputs all of the components of the message which were not matched by explicit components,or included in the ignore list.If this component is not specified, an ignore list is not needed since all non-specified components are ignored..PPIf .B \-nocomponentis not specified, then the component name is output as it appears in the format file..PPThe variable \f(CWformatfield\fRspecifies a format string; see .MS mh-format 5mh .The variables \f(CWaddrfield\fR and \f(CWdatefield\fR,which are mutually exclusive,control the interpretation of the escapes..PPBy default,.PN mhldoes not apply any formatting string to fieldscontaining address or dates; see .MS mh-mail 5mhfor a list of these fields.This results in faster operation since .PN mhlmust parse both addresses and dates in order to apply aformat string to them.If desired,.PN mhlcan be given a default format string for either address or date fields, but not both.To do this, on a global line specify either the variable \f(CWaddrfield\fR or the variable \f(CWdatefield\fR,along with the variable \f(CWformatfield\fR..\".\".\".\".SH Options.IP \-bell 10.PD 0.IP \-nobell 10.PDTells .PN mhlto ring the terminal bell at the end of each page.This is the default behavior.You can suppress this by using the .B \-nobelloption..IPThis option takes effect only if the profile entry .PN moreprocis defined but empty,and if.PN mhlis outputting to a terminal.If the .PN moreprocentry is defined and non-empty,and .PN mhlis outputting to a terminal,then .PN mhlcauses the .PN moreprocto be placed between theterminal and .PN mhl ,and the switches are ignored..\".IP \-clear 10.PD 0.IP \-noclear 10.PD Tells .PN mhlto clear the screen at the end ofeach page, or output a formfeed after each message.You can suppress this by using the.B \-noclearoption.The default behavior is .BR \-noclear ..IPThis option takes effect only if the profile entry .PN moreprocis defined but empty,and if.PN mhlis outputting to a terminal.If the .PN moreprocentry in the user's .PN \&.mh_profile is defined and non-empty, and .PN mhlis outputting to a terminal,then .PN mhlcauses the .PN moreprocprogram to be placed between the terminal and .PN mhl ,and the options are ignored..IPIf the .B \-clearoption is used and the output of.PN mhlis directed to a terminal,then .PN mhlconsults the \f(CW$TERM\fR and \f(CW$TERMCAP\fRenvironment variables to determine your terminal type in order to find out how to clear the screen.If the .B \-clearswitch is used and the output of.PN mhlis not directed to a terminal (if, for example, it is directed to a pipe or a file),then .PN mhlsends a formfeed after each message..\".IP "\-folder \fI+foldername\fB" 10Sets the folder name.This is used by components in the .PN mhl.format form file to output the message name.If you do not use this option,.PN mhl consults the environmental variable \f(CW$mhfolder\fR..\".IP "\-form \fIformfile\fB" 10Specifies the format file used.If this option is not given, .PN mhlsearches in your Mail directory for a file called.PN mhl.format ;or, if this file does not exist,it uses the system default file.PN /usr/lib/mh/mhl.format ..\".IP \-help 10Prints a list of the valid options to this command..\".IP "\-length \fIlines\fB" 10Sets the screen length.This defaults to the value indicated by.PN $TERMINFO , if appropriate; otherwise, it defaults to 40..\".IP "\-width \fIcolumns\fB" 10Sets the screen width.This defaults to the value indicated by.PN $TERMINFO ,if appropriate; otherwise, it defaults to 80..\".IP "\-moreproc \fIprogram\fB" 10.PD 0.IP "\-nomoreproc" 10.PDOverrides the default .PN moreprocprogram.Note that .PN mhlnever starts a .PN moreprocif invoked on ahardcopy terminal..\".\".PPThe defaults for this command are:.IP.B "\-bell".br.B "\-noclear".br.B "\-length 40".br.B "\-width 80".\".\".\".\".\".SH ExamplesThe first example gives a typical line of a form file:.EXwidth=80,length=40,clearscreen,overflowtext="***",overflowoffset=5.EEThe first two elements define the screen width to be 80 characters,and the screen length to be 40 lines.The next element, \f(CWclearscreen\fR, specifies thatthe screen should be cleared prior to each page.The next element, \f(CWoverflowoffset=5\fR, states that that the overflow indentation is 5.The final element, \f(CWoverflowtext="***"\fR, specifiesthat overflow text should be flagged with three asterisks..PPThe system default form file,.PN /usr/lib/mh/mhl.format ,is:.EX: \-\- using template mhl.format \- \-overflowtext="***",overflowoffset=5leftadjust,compwidth=9ignores=msid,msgid,message-id,receivedDate:formatfield="%<(nodate{text})%{text}%|%(pretty{text})%>"To:cc::From:Subject::extras:nocomponent:body:nocomponent,overflowtext=,overflowoffset=0,noleftadjust.EE.\".\".\".\".SH Profile Components.TStab(+);l l.Path:+To determine your Mail directorymoreproc:+Program to use as interactive front-end.TE.\".\".\".\".SH Files.TP 10.PN /usr/lib/mh/mhl.formatThe system default form file, used to format message..TP 10.PN <mh-dir>/mhl.formatThe user-supplied alternate to the system default form file..TP 10.PN $HOME/.mh_profileThe user profile..\".\".\".\".SH See Alsomore(1), show(1mh), mh_profile(5mh), ap(8mh), dp(8mh)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -