0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

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
This commit is contained in:
Christian Boltz 2008-11-12 22:07:50 +00:00
parent 6a5cd59785
commit 0411a11b4c

View File

@ -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;