Chinaunix首页 | 论坛 | 博客
  • 博客访问: 531932
  • 博文数量: 119
  • 博客积分: 3167
  • 博客等级: 中校
  • 技术积分: 1215
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-20 21:21
文章分类

全部博文(119)

文章存档

2015年(21)

2012年(4)

2011年(1)

2007年(11)

2006年(50)

2005年(32)

分类: LINUX

2007-11-09 20:19:07

SYNOPSIS
       postsuper [-psv] [-c config_dir] [-d queue_id]
               [-h queue_id] [-H queue_id]
               [-r queue_id] [directory ...]

       -d queue_id
              Delete  one  message with the named queue ID from the named mail
              queue(s) (default: hold, incoming, active and deferred).

              If a queue_id of - is specified, the  program  reads  queue  IDs
              from  standard  input.  For  example,  to  delete  all mail with
              exactly one recipient :

              mailq | tail +2 | awk  'BEGIN { RS = "" }
                  # $7=sender, $8=recipient1, $9=recipient2
                  { if ($8 == "" && $9 == "")
                        print $1 }
              ' | tr -d '*!' | postsuper -d -

              Specify -d ALL to remove all messages; for example,  specify  -d
              ALL  deferred to delete mail in the deferred queue.  As a safety
              measure, the word ALL must be specified in upper case.


 example:

mailq | tail +2 | awk  'BEGIN { RS = ""} {if ($8 == "" && $9 == "") print $1 }' | tr -d '*!' | postsuper -d -

阅读(2699) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~