[horde] Report as Inocent, not working

Chuck Hagenbuch chuck at horde.org
Tue Nov 15 11:23:24 PST 2005


Quoting Sean Murray <murray at tlabs.ac.za>:

> So i changed the php to output both sides of the inequality on line
> 23... of imp/templates/mailbox/actions.inc.
> <?php if ($imp['mailbox'] != 
> IMP::addPreambleString($prefs->getValue('spam_folder'))): ?>
>            | <?php echo Horde::widget('', _("Report as Spam"), 
> 'widget', '', "Submit('spam_report'); return false;", _("Report as 
> Spam ").$imp['mailbox']."
> !=".$prefs->getValue('spam_folder')); ?>
>        <?php else: ?>
>            | <?php echo Horde::widget('', _("Report as Innocent"), 
> 'widget', '', "Submit('notspam_report'); return false;", _("Report as 
> Innocent ").$imp['
> mailbox']."==".$prefs->getValue('spam_folder')); ?>
>        <?php endif; ?>
>
> This has the VERY odd effect of reporting this :
> "Report as Spam Spam!=Spam"
> when it should report
> "Report as Innocent Spam==Spam"

Right... I'm not sure what you're trying to do here, but what you have 
above is essentially "print the string 'report as spam', then the value 
of the current mailbox, then the string '!=', then the spam folder" for 
the first line, and more or less the same, but with '==' instead of 
'!=' for the second. You're not comparing anything...

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the horde mailing list