为什么 list 命令在邮件中不起作用?

为什么 list 命令在邮件中不起作用?

为什么 list 命令在邮件中不起作用?

当我尝试 l 或 list 时,它不起作用。相反,它为我提供了有效命令的列表,包括 list.

Commands are:
next, alias, print, type, Type, Print, visual, top, touch, preserve, 
delete, dp, dt, undelete, unset, mail, mbox, more, page, More, Page, 
unread, U, !, copy, chdir, cd, save, source, set, shell, version, 
group, write, from, file, folder, folders, ?, z, headers, help, =, 
Reply, Respond, reply, respond, edit, echo, quit, list, xit, exit, 
size, hold, if, else, endif, alternates, ignore, discard, retain, 
saveignore, savediscard, saveretain, core, #, clobber

编辑:

 # cat /etc/redhat-release 
 CentOS release 5.5 (Final)


# mail --version
mail: invalid option -- -
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
            [-- sendmail-options ...]
       mail [-iInNv] -f [name]
       mail [-iInNv] [-u user]

# $ rpm -qf $(which mail)
mailx-8.1.1-44.2.2

当然,无论使用哪个发行版,我都无法使其正常工作。但我很高兴知道如何在其中一个上做到这一点。

答案1

根据mail(1)手册页,list工作正常:

list    (l) List the valid mail commands.

您正在寻找的可能是hz

headers
        (h) Lists the current windowful of headers.  To view the 
        next or previous group  of headers, see the z command.

z       mail presents message headers in windowfuls as described under 
        the headers command.  You can move mail's attention forward to
        the next window with the z command.  Also, you can move to the
        previous window by using z-.

相关内容