[horde] Report as Inocent, not working

Sean Murray murray at tlabs.ac.za
Mon Nov 14 23:46:03 PST 2005


Hi

I have a rather odd problem in IMP the "Report as Spam" option
that is clicked to report spam never changes to "Report as Innoncent"
in the spam folder i have setup.
I am using horde  3.0.6 and imp-h3-4.0.3

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"

Does anyone know why the inequality would say that "Spam" is not equal to "Spam" ?
Or is my php that terrible that i am talking total crap ?


Any help would be great

Thanks
Sean


More information about the horde mailing list