https://bugs.exim.org/show_bug.cgi?id=2821
Bug ID: 2821
Summary: exiqgrep -r and -f options match all messages if no
regex defined
Product: Exim
Version: 4.94
Hardware: All
OS: FreeBSD
Status: NEW
Severity: bug
Priority: medium
Component: Exigrep
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
If exiqgrep is invoked with -r or -f but without specifying a regular
expression - e.g. like
exiqgrep -i -r | xargs exim -Mrm
all enqueued are deleted.
Help output states
Selection criteria:
-f <regexp> Match sender address sender (field is "< >" wrapped)
...
which indicates that <regexp> is a required criteria.
I presume the absence of <regexp> is treated as an empty regex, matching
everything - but I would consider this a bug, or at least unexpected behaviour.
Needless to say the fallout of discovering this was somewhat significant. User
error, yes, but not immediately obvious.
--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim
details at http://www.exim.org/ ##