diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2023-03-12 20:57:40 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2023-03-12 20:57:40 +0000 |
commit | 8ff2ba119ba654e9238f157f94bf10ed640ed877 (patch) | |
tree | 4098efe4c01eeb1ebc2d17b15055567bd5344a6c /src/src/exim.c | |
parent | 1d904e0470fed2e5c7a867f63d39ee44dbe80a2a (diff) | |
download | exim4-8ff2ba119ba654e9238f157f94bf10ed640ed877.tar.gz |
Cmdine option for only IDs of queue
Diffstat (limited to 'src/src/exim.c')
-rw-r--r-- | src/src/exim.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index 8d13bd478..c16beb1af 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -1745,7 +1745,7 @@ int filter_sfd = -1; int filter_ufd = -1; int group_count; int i, rv; -int list_queue_option = 0; +int list_queue_option = QL_BASIC; int msg_action = 0; int msg_action_arg = -1; int namelen = argv[0] ? Ustrlen(argv[0]) : 0; @@ -2388,11 +2388,9 @@ on the second character (the one after '-'), to save some effort. */ } if (*argrest == 'r') - { - list_queue_option = 8; - argrest++; - } - else list_queue_option = 0; + list_queue_option = QL_UNSORTED, argrest++; + else + list_queue_option = QL_BASIC; list_queue = TRUE; @@ -2402,11 +2400,15 @@ on the second character (the one after '-'), to save some effort. */ /* -bpu: List the contents of the mail queue, top-level undelivered */ - else if (Ustrcmp(argrest, "u") == 0) list_queue_option += 1; + else if (Ustrcmp(argrest, "u") == 0) list_queue_option |= QL_UNDELIVERED_ONLY; /* -bpa: List the contents of the mail queue, including all delivered */ - else if (Ustrcmp(argrest, "a") == 0) list_queue_option += 2; + else if (Ustrcmp(argrest, "a") == 0) list_queue_option |= QL_PLUS_GENERATED; + + /* -bpi: List only message IDs */ + + else if (Ustrcmp(argrest, "i") == 0) list_queue_option |= QL_MSGID_ONLY; /* Unknown after -bp[r] */ |