On Mon, Feb 14, 2005 at 12:08:21AM -0700, Charles Jones wrote:
Henrik Stoerner wrote:
$ADMINS="user-b7c20e0da76a@xymon.invalid user-143c88f2d522@xymon.invalid"
HOST=*
MAIL $ADMINS COLOR=red
Wouldn't that be:
HOST=%.*
MAIL $ADMINS COLOR=red
The reason I ask is because I am using HOST=%.*, and it seems to be
working. I thought it had to be a regex?
"HOST=*" is a special-case meaning "match anything". It was so simple
to implement, and obviously useful (I think), so I added that some
time ago.
Your regex will also work, and is the recommended way of doing
wildcard matches.
Henrik