#### 3.5.2.8 Displaying Messages ¶

Mail command: print [msglist] ¶
Mail command: p [msglist] ¶
Mail command: type [msglist] ¶
Mail command: t [msglist] ¶

  Prints out the messages from msglist. The variable `crt` determines the minimum number of lines the body of the message must contain in order to be piped through pager command specified by environment variable `PAGER`. If `crt` is set to a numeric value, this value is taken as the minimum number of lines. Otherwise, if `crt` is set without a value then the height of the terminal screen is used to compute the threshold. The number of lines on screen is controlled by `screen` variable.

Mail command: Print [msglist] ¶
Mail command: P [msglist] ¶
Mail command: Type [msglist] ¶
Mail command: T [msglist] ¶

  Like print but also prints out ignored header fields.

Mail command: decode [msglist] ¶
Mail command: dec [msglist] ¶

  Print a multipart message. The `decode` command decodes and prints out specified messages. The msglist can contain message parts (see message part specification), in which case only specified message parts will be output.

      ? decode 15.2
      +---------------------------------------
      | Message=15.2
      | Type=message/delivery-status
      | encoding=7bit
      +---------------------------------------
      Content-Type: message/delivery-status
      ...

Mail command: top [msglist] ¶
Mail command: to [msglist] ¶

  Prints the top few lines of each message in msglist. The number of lines printed is controlled by the variable `toplines` and defaults to five.

Mail command: pipe [[msglist] shell-command] ¶
Mail command: | [[msglist] shell-command] ¶

  Pipe the contents of specified messages through shell-command. Without arguments, pipe the current message through the command given by the ‘`cmd`’ variable (which must be set).

Mail command: struct [msglist] ¶

  Prints the MIME structure of each message from msglist. Empty msglist means current message.

  Example:

      ? struct 2
      2      multipart/mixed            14k
      2.1    text/plain                 296
      2.2    application/octet-stream    5k
      2.3    text/x-diff                31k