diff --git a/config.inc.php b/config.inc.php index b1788c34..eb13fe2d 100644 --- a/config.inc.php +++ b/config.inc.php @@ -274,11 +274,13 @@ $CONF['show_status_text']='  '; // elsewhere, you will probably want to disable this. $CONF['show_undeliverable']='NO'; $CONF['show_undeliverable_color']='tomato'; +// mails to these domains will never be flagged as undeliverable $CONF['show_undeliverable_exceptions']=array("unixmail.domain.ext","exchangeserver.domain.ext","gmail.com"); $CONF['show_popimap']='NO'; $CONF['show_popimap_color']='darkgrey'; -// set 'show_custom_count' to 0 to disable custom indicators -$CONF['show_custom_count']=2; +// you can assign special colors to some domains. To do this, +// - add the domain to show_custom_domains +// - add the corresponding color to show_custom_colors $CONF['show_custom_domains']=array("subdomain.domain.ext","domain2.ext"); $CONF['show_custom_colors']=array("lightgreen","lightblue"); diff --git a/functions.inc.php b/functions.inc.php index e9dfc579..56c48f88 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -2061,7 +2061,7 @@ function gen_show_status ($show_alias) } // CUSTOM DESTINATION CHECK - if ( $CONF['show_custom_count'] > 0 ) + if ( count($CONF['show_custom_domains']) > 0 ) { for ($i = 0; $i < sizeof ($CONF['show_custom_domains']); $i++) { diff --git a/templates/list-virtual.php b/templates/list-virtual.php index a94c4d35..409ae3cb 100644 --- a/templates/list-virtual.php +++ b/templates/list-virtual.php @@ -370,7 +370,7 @@ if ($CONF['show_status'] == 'YES' && $CONF['show_status_key'] == 'YES') print " " . $CONF['show_status_text'] . "=" . $PALANG['pStatus_popimap'] . "\n"; } - if ( $CONF['show_custom_count'] > 0 ) + if ( count($CONF['show_custom_domains']) > 0 ) { for ($i = 0; $i < sizeof ($CONF['show_custom_domains']); $i++) {