首页 > 其他 > 详细

【CentOS】mail 操作

时间:2015-08-01 19:11:46      阅读:200      评论:0      收藏:0      [点我收藏+]

// 查看邮件

[root@wode012 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 <root@wode012> /"

    2 (Cron Daemon)         Sat Aug  1 13:25  26/917   "Cron <root@wode012> /"


// 帮助

& ?

               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 操作

原文:http://huangchao.blog.51cto.com/10446378/1680792

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!