From 0411a11b4c4c499f964ecdedaee3e7b4d6e9eed6 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 12 Nov 2008 22:07:50 +0000 Subject: [PATCH] functions.inc.php - gen_show_status(): "probably undeliverable" marker now honors catchall aliases and no longer marks aliases pointing to a catchall as invalid https://sourceforge.net/tracker/index.php?func=detail&aid=2013772&group_id=191583&atid=937964 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@480 a1433add-5e2c-0410-b055-b7f2511e0802 --- functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index 02e04b2e..4779d32a 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -2006,7 +2006,8 @@ function gen_show_status ($show_alias) $stat_ok = 1; while ( ($g=array_pop($gotos)) && $stat_ok ) { - $stat_result = db_query ("SELECT address FROM $table_alias WHERE address = '$g'"); + $stat_catchall = substr($g,strpos($g,"@")); + $stat_result = db_query ("SELECT address FROM $table_alias WHERE address = '$g' OR address = '$stat_catchall'"); if ($stat_result['rows'] == 0) { $stat_ok = 0;