Chinaunix首页 | 论坛 | 博客
  • 博客访问: 228944
  • 博文数量: 57
  • 博客积分: 2135
  • 博客等级: 大尉
  • 技术积分: 570
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-10 13:55
文章分类

全部博文(57)

文章存档

2017年(1)

2011年(4)

2010年(4)

2009年(8)

2008年(3)

2007年(37)

我的朋友

分类:

2007-07-06 15:12:41

postsuper - Postfix superintendent

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 user@example.com:

              mailq | tail +2 | awk  'BEGIN { RS = "" }
                  # $7=sender, $8=recipient1, $9=recipient2
                  { if ($8 == "user@example.com" && $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.
阅读(2110) | 评论(0) | 转发(0) |
0

上一篇:phpMyAdmin安装

下一篇:Windows自动登录

给主人留下些什么吧!~~