[exim-cvs] Bug 609: Add -C option to exiqgrep

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Bug 609: Add -C option to exiqgrep
Gitweb: http://git.exim.org/exim.git/commitdiff/8d91c6dcd2c16f9a84b7abf47d130bac1a8bb273
Commit:     8d91c6dcd2c16f9a84b7abf47d130bac1a8bb273
Parent:     fd3b6a4ad699259b80dcaed6287ec01ab5ec0105
Author:     Lars Timmann <lt@???>
AuthorDate: Wed Apr 23 17:03:06 2014 -0700
Committer:  Todd Lyons <tlyons@???>
CommitDate: Thu Apr 24 06:38:41 2014 -0700


    Bug 609: Add -C option to exiqgrep


    Option is a passthrough to the exim process that it spawns that
      generates the queue list.


    Fixed Conflicts:
        doc/doc-txt/ChangeLog
---
 doc/doc-docbook/spec.xfpt |    6 +++++-
 doc/doc-txt/ChangeLog     |    3 +++
 doc/doc-txt/NewStuff      |    3 +++
 src/src/exiqgrep.src      |    4 +++-
 4 files changed, 14 insertions(+), 2 deletions(-)


diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt
index 612d147..7282302 100644
--- a/doc/doc-docbook/spec.xfpt
+++ b/doc/doc-docbook/spec.xfpt
@@ -34683,7 +34683,11 @@ exim -bpu
or (in case &*-a*& switch is specified)
.code
exim -bp
-.endd
+.endd
+.new
+The &*-C*& option is used to specify an alternate &_exim.conf_& which might
+contain alternate exim configuration the queue management might be using.
+.wen

to obtain a queue listing, and then greps the output to select messages
that match given criteria. The following selection options are available:
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 649b730..8bf42d5 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -93,6 +93,9 @@ TL/08 Bugzilla 1453: New LDAP "SERVERS=" option allows admin to override list

JH/18 New options dnssec_lax, dnssec_strict on dnsdb lookups.

+TL/09 Bugzilla 609: Add -C option to exiqgrep, specify which exim.conf to use.
+      Patch submitted by Lars Timman.
+


 Exim version 4.82
 -----------------
diff --git a/doc/doc-txt/NewStuff b/doc/doc-txt/NewStuff
index bfbfc71..39e2aa4 100644
--- a/doc/doc-txt/NewStuff
+++ b/doc/doc-txt/NewStuff
@@ -36,6 +36,9 @@ Version 4.83
     lookup can now set a list of servers to use that is different from the
     default list.


+ 7. New command-line option -C for exiqgrep to specify alternate exim.conf
+    file when searching the queue.
+


Version 4.82
------------
diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src
index 05c1b9e..94b17f5 100644
--- a/src/src/exiqgrep.src
+++ b/src/src/exiqgrep.src
@@ -43,9 +43,10 @@ if ($^O eq 'darwin') { # aka MacOS X
$base = 62;
};

-getopts('hf:r:y:o:s:zxlibRca',\%opt);
+getopts('hf:r:y:o:s:C:zxlibRca',\%opt);
if ($opt{h}) { &help; exit;}
if ($opt{a}) { $eargs = '-bp'; }
+if ($opt{C}) { $eargs .= ' -C '.$opt{C}; }

# Read message queue output into hash
&collect();
@@ -61,6 +62,7 @@ sub help() {
Exim message queue display utility.

     -h        This help message.
+    -C        Specify which exim.conf to use.


 Selection criteria:
     -f <regexp>    Match sender address sender (field is "< >" wrapped)