diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2016-05-07 23:11:18 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2016-05-07 23:11:18 +0100 |
commit | 28b3821f89f89670a08603c50662d468e82510ad (patch) | |
tree | a49b411cd895fb2c95535413a68d58a62c010657 /src | |
parent | a2da3176aa39ec9aa5ae495e5a6d533477f871aa (diff) |
Command-line options
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exim.c | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index 4ea42fdc2..6432a4c2f 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -2716,12 +2716,22 @@ for (i = 1; i < argc; i++) /* -MCD: set the smtp_use_dsn flag; this indicates that the host that exim is connected to supports the esmtp extension DSN */ + else if (Ustrcmp(argrest, "CD") == 0) { smtp_use_dsn = TRUE; break; } + /* -MCG: set the queue name, to a non-default value + + else if (Ustrcmp(argrest, "CG") == 0) + { + if (++i < argc) queue_name = string_copy(argv[i]); + else badarg = TRUE; + break; + } + /* -MCP: set the smtp_use_pipelining flag; this is useful only when it preceded -MC (see above) */ @@ -2737,9 +2747,9 @@ for (i = 1; i < argc; i++) else if (Ustrcmp(argrest, "CQ") == 0) { - if(++i < argc) passed_qr_pid = (pid_t)(Uatol(argv[i])); + if (++i < argc) passed_qr_pid = (pid_t)(Uatol(argv[i])); else badarg = TRUE; - if(++i < argc) passed_qr_pipe = (int)(Uatol(argv[i])); + if (++i < argc) passed_qr_pipe = (int)(Uatol(argv[i])); else badarg = TRUE; break; } @@ -3229,8 +3239,16 @@ for (i = 1; i < argc; i++) argrest++; } - /* -q[f][f][l]: Run the queue, optionally forced, optionally local only, - optionally starting from a given message id. */ + /* -q[f][f][l][G<name>]... Run the named queue */ + + if (*argrest == 'G') + { + queue_name = string_copy(argrest); + do ++argrest; while (*argrest); + } + + /* -q[f][f][l][G<name>]: Run the queue, optionally forced, optionally local + only, optionally named, optionally starting from a given message id. */ if (*argrest == 0 && (i + 1 >= argc || argv[i+1][0] == '-' || mac_ismsgid(argv[i+1]))) |