mac os 終端提示 you have new mail

這裏的信息多是因爲所作的什麼操做觸發了發郵件的事件, 系統發送的郵件提醒.bash

我遇到的緣由是因爲運行 cron , 因爲權限所致使了發郵件的事件提醒.app

Last login: Tue Apr 26 09:15:20 on console
You have new mail.ide

在這裏找到了緣由post

 

I was also having this issue of "You have mail" coming up every time I started Terminal.this

What I discovered is this.code

Something I'd installed (not entirely sure what, but possibly a script or something associated with an Alfred Workflow [at a guess], made a change to the OS X system to start presenting Terminal bash notifications. Prior to that, it appears Wordpress had attempted to use the Local Mail system to send a message. The message bounced, due to it having an invalid Recipient address. The bounced message then ended up in the local system mail inbox. So Terminal (bash) was then notifying me that "You have mail".事件

You can access the mail by simply using the commandip

mail

thenci

t

This will show you the first message. Useterminal

n

To jump to the next message. This may help you identify what attempted to send the message(s).

Use the command

d

To delete each message when you are done looking at them.

In my particular case, there were a number of messages. It looks like the one was a returned message that bounced. It was sent by a local Wordpress installation. It was a notification for when user "Admin" (me) changed its password. Two additional messages where there. Both seemed to be to the same incident.

What I don't know, and can't answer for you either, is WHY I only recently started seeing this mail notification each time I open Terminal. The mails were generated a couple of months ago, and yet I only noticed this "you have mail" appearing in the last few weeks. I suspect it's the result of something a workflow I installed in Alfred, and that workflow using Terminal bash to provide notifications... or something along those lines.

相關文章
相關標籤/搜索