【CentOS】mail 操作

來源:互聯網
上載者:User

標籤:centos mail

// 查看郵件

[[email protected] script]# mail

Heirloom Mail version 12.5 7/5/10.  Type ? for help.

"/var/spool/mail/root": 2 messages

>   1 (Cron Daemon)         Sat Aug  1 06:01  28/1027  "Cron <[email protected]> /"

    2 (Cron Daemon)         Sat Aug  1 13:25  26/917   "Cron <[email protected]> /"


// 協助

& ?

               mail commands

type <message list>             type messages

next                            goto and type next message

from <message list>             give head lines of messages

headers                         print out active message headers

delete <message list>           delete messages

undelete <message list>         undelete messages

save <message list> folder      append messages to folder and mark as saved

copy <message list> folder      append messages to folder without marking them

write <message list> file       append message texts to file, save attachments

preserve <message list>         keep incoming messages in mailbox even if saved

Reply <message list>            reply to message senders

reply <message list>            reply to message senders and all recipients

mail addresses                  mail to specific recipients

file folder                     change to another folder

quit                            quit and apply changes to folder

xit                             quit and discard changes made to folder

!                               shell escape

cd <directory>                  chdir to directory or home if none given

list                            list names of all available commands


A <message list> consists of integers, ranges of same, or other criteria

separated by spaces.  If omitted, mail uses the last message typed.


// 刪除郵件

& delete 1-2



【CentOS】mail 操作

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.