qmail user template if statement does not handle all situations correctly
Line 1:
Line 1:
+
* The first if-statement below from the "Creating SME-QMAIL-user-templates" section from the 'Zarafa Install Script' does not correctly handle the situation where <tt>GlobalForward</tt> is <tt>enabled</tt> but an account has the <tt>zarafa</tt> property set to <tt>disabled</tt> ...
+
<syntaxhighlight lang="Bash">
+
{
+
my \$zarafa = \$user->prop('zarafa') || 'disabled';
+
my \$zarafa2 = \${'zarafa-server'}{GlobalForward} || 'disabled';
+
+
if (\$zarafa eq 'enabled' || \$zarafa2 eq 'enabled')