⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mhl.man

📁 早期freebsd实现
💻 MAN
字号:
MHL(1)                 BSD Reference Manual                MHL(1)NNAAMMEE       mhl - produce formatted listings of MH messagesSSYYNNOOPPSSIISS       /usr/contrib/mh-6.8/lib/mhl   [-bell]  [-nobell]  [-clear]            [-noclear]     [-folder +folder]     [-form formfile]            [-length lines]  [-width columns] [-moreproc program]            [-nomoreproc] [files ...]  [-help]DDEESSCCRRIIPPTTIIOONN       _M_h_l is a formatted message listing  program.   It  can  be       used   as   a   replacement   for  _m_o_r_e (1)  (the  default       _s_h_o_w_p_r_o_c ).  As with _m_o_r_e, each of the messages  specified       as  arguments  (or the standard input) will be output.  If       more than one message file is specified, the user will  be       prompted  prior  to each one, and a <RETURN> or <EOT> will       begin the output, with <RETURN> clearing  the  screen  (if       appropriate),  and  <EOT> (usually CTRL-D) suppressing the       screen clear.  An <INTERRUPT> (usually CTRL-C) will  abort       the current message output, prompting for the next message       (if there is one), and a <QUIT> (usually CTRL-\) will ter-       minate the program (without core dump).       The  `-bell'  option tells _m_h_l to ring the terminal's bell       at the end of each page, while the `-clear'  option  tells       _m_h_l  to clear the scree at the end of each page (or output       a formfeed after each message).  Both  of  these  switches       (and  their  inverse counterparts) take effect only if the       profile entry _m_o_r_e_p_r_o_c is defined but empty,  and  _m_h_l  is       outputting  to  a  terminal.   If  the  _m_o_r_e_p_r_o_c  entry is       defined and non-empty, and _m_h_l is outputting to  a  termi-       nal, then _m_h_l will cause the _m_o_r_e_p_r_o_c to be placed between       the terminal and _m_h_l and the switches are  ignored.   Fur-       thermore,  if the `-clear' switch is used and _m_h_l_'_s output       is directed to a terminal, then _m_h_l will consult the $$TTEERRMM       and  $$TTEERRMMCCAAPP envariables to determine the user's terminal       type in order to find out how to clear the screen.  If the       `-clear'  switch  is used and _m_h_l_'_s output is not directed       to a terminal (e.g., a pipe or a file), then _m_h_l will send       a formfeed after each message.       To  override  the  default _m_o_r_e_p_r_o_c and the profile entry,       use the `-moreproc program' switch.  Note  that  _m_h_l  will       never  start a _m_o_r_e_p_r_o_c if invoked on a hardcopy terminal.       The `-length length' and `-width width' switches  set  the       screen  length  and width, respectively.  These default to       the values indicated by $$TTEERRMMCCAAPP, if  appropriate,  other-       wise they default to 40 and 80, respectively.       The  default  format file used by _m_h_l is called _m_h_l_._f_o_r_m_a_t[mh.6]                        MH.6.8                            1MHL(1)                 BSD Reference Manual                MHL(1)       (which is first searched for in the user's  _M_H  directory,       and then sought in the _/_u_s_r_/_c_o_n_t_r_i_b_/_m_h_-_6_._8_/_l_i_b directory),       this  can  be  changed  by  using  the  `-form formatfile'       switch.       Finally,  the  `-folder +folder' switch sets the _M_H folder       name, which is used for the "messagename:" field described       below.   The  envariable  $$mmhhffoollddeerr  is  consulted for the       default value,  which  _s_h_o_w,  _n_e_x_t,  and  _p_r_e_v  initialize       appropriately.       _M_h_l  operates  in two phases: 1) read and parse the format       file, and 2) process each message (file).  During phase 1,       an  internal  description  of  the format is produced as a       structured list.  In phase 2, this list is walked for each       message,  outputting  message information under the format       constraints from the format file.       The "mhl.format" form file contains  information  control-       ling  screen  clearing,  screen size, wrap-around control,       transparent text, component ordering, and  component  for-       matting.   Also,  a  list  of  components to ignore may be       specified,  and  a  couple  of  "special"  components  are       defined  to  provide  added functionality.  Message output       will be in the order specified by the order in the  format       file.       Each line of mhl.format has one of the formats:            ;comment            :cleartext            variable[,variable...]            component:[variable,...]       A  line beginning with a `;' is a comment, and is ignored.       A line beginning with a `:' is clear text, and  is  output       exactly  as  is.   A line containing only a `:' produces a       blank line in the output.  A line beginning  with  "compo-       nent:" defines the format for the specified component, and       finally, remaining lines define the global environment.       For example, the line:            width=80,length=40,clearscreen,overflowtext="***",overflowoffset=5       defines the screen size to be 80 columns by 40 rows, spec-       ifies that the screen should  be  cleared  prior  to  each       page,  that  the overflow indentation is 5, and that over-       flow text should be flagged with "***".       Following are all  of  the  current  variables  and  their[mh.6]                        MH.6.8                            2MHL(1)                 BSD Reference Manual                MHL(1)       arguments.  If they follow a component, they apply only to       that component, otherwise, their affect 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  if  that variable is used in a global       context (i.e., bell, clearscreen, width, length).            _v_a_r_i_a_b_l_e       _t_y_p_e       _s_e_m_a_n_t_i_c_s            width          integer    screen width or component width            length         integer    screen length or component length            offset         integer    positions to indent "component: "            overflowtext   string     text to use at the beginning of an                                      overflow line            overflowoffset integer    positions to indent overflow lines            compwidth      integer    positions to indent component text                                      after the first line is output            uppercase      flag       output text of this component in all                                      upper case            nouppercase    flag       don't uppercase            clearscreen    flag/G     clear the screen prior to each page            noclearscreen  flag/G     don't clearscreen            bell           flag/G     ring the bell at the end of each page            nobell         flag/G     don't bell            component      string/L   name to use instead of "component" for                                      this component            nocomponent    flag       don't output "component: " for this                                      component            center         flag       center component on line (works for                                      one-line components only)            nocenter       flag       don't center            leftadjust     flag       strip off leading whitespace on each                                      line of text            noleftadjust   flag       don't leftadjust            compress       flag       change newlines in text to spaces            nocompress     flag       don't compress            split          flag       don't combine multiple fields into a single field            nosplit        flag       combine multiple fields into a single field            newline        flag       print newline at end of components (default)            nonewline      flag       don't print newline at end of components            formatfield    string     format string for this component (see below)            addrfield      flag       field contains addresses            datefield      flag       field contains dates       To 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 by double-quotes.  If a  value  is  suffixed  by       "/G" or "/L", then its value is useful in a global-only or       local-only context (respectively).[mh.6]                        MH.6.8                            3MHL(1)                 BSD Reference Manual                MHL(1)       A line of the form:           ignores=component,...       specifies a list of components which are never output.       The component "MessageName" (case-insensitive) will output       the actual message name (file name) preceded by the folder       name if one is specified or found in the environment.  The       format  is  identical  to  that  produced by the `-header'       option to _s_h_o_w.       The component "Extras" will output all of  the  components       of  the  message which were not matched by explicit compo-       nents, or included in the ignore list.  If this  component       is  not  specified, an ignore list is not needed since all       non-specified components will be ignored.       If "nocomponent" is NOT specified, then the component name       will be output as it appears in the format file.       The default format is:            : -- using template mhl.format --            overflowtext="***",overflowoffset=5            leftadjust,compwidth=9            ignores=msgid,message-id,received            Date:formatfield="%<(nodate{text})%{text}%|%(pretty{text})%>"            To:            cc:            :            From:            Subject:            :            extras:nocomponent            :            body:nocomponent,overflowtext=,overflowoffset=0,noleftadjust       The  variable "formatfield" specifies a format string (see       _m_h_-_f_o_r_m_a_t (5)).  The flag variables "addrfield" and "date-       field"  (which are mutually exclusive), tell _m_h_l to inter-       pret the escapes in the format string as either  addresses       or dates, respectively.       By  default,  _m_h_l  does not apply any formatting string to       fields containing address or dates (see _m_h_-_m_a_i_l (5) for  a       list  of  these fields).  Note that this results in faster       operation since _m_h_l must parse both addresses and dates in       order  to  apply a format string to them.  If desired, _m_h_l       can be given a default format string for either address or       date  fields (but not both).  To do this, on a global line[mh.6]                        MH.6.8                            4MHL(1)                 BSD Reference Manual                MHL(1)       specify: either the flag  addrfield  or  datefield,  along       with the apropriate formatfield variable string.FFIILLEESS       /usr/contrib/mh-6.8/lib/mhl.format        The message template       or <mh-dir>/mhl.format                    Rather than the standard template       $HOME/.mh_profile                         The user profilePPRROOFFIILLEE CCOOMMPPOONNEENNTTSS       moreproc:            Program to use as interactive front-endSSEEEE AALLSSOO       show(1), ap(8), dp(8)DDEEFFAAUULLTTSS       `-bell'       `-noclear'       `-length 40'       `-width 80'CCOONNTTEEXXTT       NoneBBUUGGSS       There should be some way to pass `bell' and `clear' infor-       mation to the front-end.       On hosts where _M_H was configured  with  the  BERK  option,       address parsing is not enabled.       The "nonewline" option interacts badly with "compress" and       "split".[mh.6]                        MH.6.8                            5

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -