H

H

使用该mail命令,它会显示我拥有的消息,并使我进入提示,但我不知道如何列出消息。这是邮件的帮助屏幕:

Mail Command                    Description
-------------------------       ---------------------------------------------
t [message list]                type messages(s).
more [message list]             read message(s), through the $PAGER
n                               goto and type next message.
e [message list]                edit message(s)
f [message list]                give head lines of messages.
d [message list]                delete message(s).
s [message list] <file>         append message(s) to file.
u [message list]                undelete message(s).
R [message list]                reply to message sender(s).
r [message list]                reply to message sender(s) and all recipients.
p [message list]                print message list.
pre [message list]              make messages go back to /var/mail.
m <recipient list>              mail to specific recipient(s).
q                               quit, saving unresolved messages in mbox.
x                               quit, do not remove system mailbox.
h                               print out active message headers.
!                               shell escape.
| [msglist] command             pipe message(s) to shell command.
pi [msglist] command            pipe message(s) to shell command.
cd [directory]                  chdir to directory or home if none given
fi <file>                       switch to file (%=system inbox, %user=user's

正如您所看到的,这些命令都没有列出邮箱中的邮件。

答案1

H

虽然帮助文字可能不是特别清楚,但是h就是列出消息的命令。在后面放置有效的消息编号h将列出包含给定消息的一系列消息。例如,如果您有 50 条消息并输入h30,它可能会列出消息 21 到 40。

F

为了仅显示特定消息,您可以使用f各种限定符。因此,f*显示所有内容,同时f 1-10 20-24显示消息 1 到 10 和 20 到 24。

相关内容