Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ scan(1m) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

inc

pick

show

mh-format

mh-profile



SCAN(1m,C)                  AIX Commands Reference                   SCAN(1m,C)



-------------------------------------------------------------------------------
scan



PURPOSE

Produces a one-line-per-message scan listing.

SYNTAX


        +-----------+   +-------- all ---------------------------------+
scan ---|           |---| +----------- all --------------------------+ |--->
        +- +folder -+   +-|   +------------ sequence ------------+   |-+
                          +---|  one of                          |---+
                            ^ | +-------+   +------------------+ | |
                            | +-| num   |---|      one of      |-+ |
                            |   | first |   |1+--------------+ |   |
                            |   | prev  |   +-| :num   -prev |-+   |
                            |   | cur   |     | :+num  -cur  |     |
                            |   | .     |     | :-num  -.    |     |
                            |   | next  |     | -num   -next |     |
                            |   | last  |     | -first -last |     |
                            |   +-------+     +--------------+     |
                            +--------------------------------------+

    +--------------------+   +-- -noheader --+   +-- -noclear --+
>---|       one of       |---|    one of     |---|    one of    |--->
    | +----------------+ |   | +-----------+ |   | +----------+ |
    +-| -form file     |-+   +-| -header   |-+   +-| -clear   |-+
      | -format string |       | -noheader |       | -noclear |
      +----------------+       +-----------+       +----------+

    +-- -noreverse --+  +----------------+
>---| +------------+ |--|                |--|
    | | -reverse   | |  +-- -width num --+
    +-| -noreverse |-+
      +------------+


scan --- -help ---|


-----------------
1 Do not put a blank between these items.


Note:  This command does not have MBCS support.

DESCRIPTION




Processed November 8, 1990        SCAN(1m,C)                                  1





SCAN(1m,C)                  AIX Commands Reference                   SCAN(1m,C)



The scan command is used to display information about the messages in a
specified folder.  scan is part of the Message Handling (MH) package and can be
used with other MH and AIX commands.

The scan command displays a line of information about each specified message in
the specified folder.  Each line gives the message number, the date, the
sender, the subject, and as much of the message body as possible.  If a +
symbol is displayed after the message number, the message is the current
message for the folder.  If a - symbol is displayed, you have replied to the
message.  If a * symbol is displayed after the date, the Date: field was not
present and the displayed date is the last date the message was changed.

FLAGS

-clear            Clears the display after sending output.  scan uses the
                  values of the $TERM and $TERMCAP environment variables to
                  determine how to clear the display.  If standard output is
                  not a display, scan sends a formfeed character after sending
                  the output.

+folder msgs      Displays information about each specified message in the
                  specified folder.  You can use the following message
                  references when specifying msgs:

                  num                    first                   prev
                  cur                    .                       next
                  last                   all                     sequence

                  The default folder is the current folder.  If a folder is
                  specified, it becomes the current folder.  The default for
                  msgs is all.

-form file        Displays the scan command output in the alternate format
                  described by file

-format string    Displays the scan command output in the alternate format
                  described by string The default format is given as an example
                  in the AIX Operating System Technical Reference under
                  "mh-format".

-header           Displays a heading that lists the folder name and the current
                  date and time.

-help             Displays help information for the command.

-noclear          Does not clear the terminal after sending output.  This is
                  the default.

-noheader         Does not display a heading.  This is the default.






Processed November 8, 1990        SCAN(1m,C)                                  2





SCAN(1m,C)                  AIX Commands Reference                   SCAN(1m,C)



-noreverse        Does not reverse the order the messages are displayed in.
                  This is the default.

-reverse          Reverses the order messages are displayed in.

-width num        Sets the number of columns in the scan command output.  The
                  default is the width of the display.

PROFILE ENTRIES

Alternate-Mailboxes:    Specifies your mailboxes.
Current-Folder:         Sets your default current folder.
Path:                   Specifies your user_mh_directory.

FILES

.profile
$HOME/.mh_profile    The MH user profile.

RELATED INFORMATION

See other MH commands:  "inc,"  "pick,"  "show."

See the mh-format and mh-profile files in AIX Operating System Technical
Reference.

See "Overview of the Message Handling Package" in Managing the AIX Operating
System.



























Processed November 8, 1990        SCAN(1m,C)                                  3



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026