Mac 终端 – 如果显示有邮件该怎么办

Eva

本文将向您介绍如果在 Mac 上启动终端时显示“您有邮件”该怎么办。


从 Mac 的 Finder 中访问“应用程序”→“实用程序”并启动“终端”。


它说“你有邮件”。这意味着电子邮件将从 Mac(本地主机)内运行的邮件服务器发送到登录用户。

现在,我们就来看看如何处理吧。

要显示收到的电子邮件,请运行 mail 命令。在下面的示例中,一封未读电子邮件 (1 条消息 1 条未读) 已到达。

$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/mail/user": 1 message 1 unread
>U  1 [email protected]  Thu Jun 13 15:28  90/2842  "Undelivered Mail Returned to Sender"
? 1

如果您想阅读此未读电子邮件,请输入您的电子邮件号码(此处,1)并按 Enter 键。

按 Enter 键,将显示电子邮件。如果电子邮件包含多个页面,请按空格键前进到下一页。阅读完电子邮件后,输入“q”并按 Enter 键退出邮件命令。当您再次运行 email 命令时,没有未读电子邮件,因此将显示以下消息。

$ mail
No mail for user

现在,当您在 Mac 上启动终端时,将不再出现“您有邮件”消息。已读电子邮件保存在 ~/mbox (/Users/用户名/mbox) 中,因此如果您想再次阅读它们,请参阅此处。

了解更多:Chrome 或 Microsoft Edge 中显示“无法打印 PDF 文档”消息时该怎么办

附带说明一下,当您输入电子邮件号码并按 Enter 键时,您可以输入“?”并按 Enter 键查看可与 mail 命令一起使用的命令的帮助。

? ?
    Mail   Commands
t <message list>		type messages
n				goto and type next message
e <message list>		edit messages
f <message list>		give head lines of messages
d <message list>		delete messages
s <message list> file		append messages to file
u <message list>		undelete messages
R <message list>		reply to message senders
r <message list>		reply to message senders and all recipients
pre <message list>		make messages go back to /var/mail
m <user list>			mail to specific users
q				quit, saving unresolved messages in mbox
x				quit, do not remove system mailbox
h				print out active message headers
!				shell escape
cd [directory]			chdir to directory or home if none given

A <message list> consists of integers, ranges of same, or user names separated
by spaces.  If omitted, Mail uses the last message typed.

A <user list> consists of user names or aliases separated by spaces.
Aliases are defined in .mailrc in your home directory.
  • 如何使用和配置您的 Mac