如何列出邮箱中的邮件?


15

使用该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

如您所见,这些命令都没有列出邮箱中的消息。

Answers:


23

H

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

F

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


+ 1,h1,h100,h200等等
mikejonesey

适用于我的版本。
mikejonesey '16
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.