[imp] report as innocent option

Dustin Mitchell dustin at ywlcs.org
Tue Jan 4 15:28:01 PST 2005


On Mon, Dec 27, 2004 at 11:02:06AM -0300, Ivan Alejandro ??ili?? Schmidt - MainNetworks Ltda. wrote:
> Is there any way to show the "report as innocent in all the folders" ?
> 
> I see another problem, im working with all the horde defaults, i just
> configured
> my identity. And automatically showed me my spam folder as "0-SPAM" the 
> name i
> use for my spam folder, but the innocent link didnt appear till i clicked
> "save" in the folders settings.

I just ran into this problem.  It's a fairly simple hack to fix it
(patch below).  I don't know if the developers want to make this into a
configuration parameter or a pref.

*** templates/mailbox/actions.inc.orig  2005-01-04 16:48:45.000000000 -0600
--- templates/mailbox/actions.inc       2005-01-04 16:49:15.000000000 -0600
***************
*** 20,31 ****
  <?php endif; ?>
      | <?php echo Horde::widget('', _("Forward"), 'widget', '', "Submit('fwd_digest'); return false;", _("Fo_rward")) ?>
  <?php if ($conf['spam']['reporting']): ?>
- <?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")); ?>
- <?php else: ?>
      | <?php echo Horde::widget('', _("Report as Innocent"), 'widget', '', "Submit('notspam_report'); return false;", _("Report as Innocent")); ?>
  <?php endif; ?>
- <?php endif; ?>
      </td>
      <td align="right">
  <?php if ($showdelete): ?>
--- 20,28 ----



*** templates/message/navbar_actions.inc.original 2005-01-04 16:46:06.000000000 -0600
--- templates/message/navbar_actions.inc  2005-01-04 16:46:26.000000000 -0600
***************
*** 32,38 ****
  <?php if (isset($spam_link) && $imp['mailbox'] != IMP::addPreambleString($prefs->getValue('spam_folder'))): ?>
   | <?php echo Horde::widget($spam_link, _("Report as Spam"), 'widget', '', '', _("Report as Spam"), true) ?>
  <?php endif; ?>
! <?php if (isset($notspam_link) &&  $imp['mailbox'] == IMP::addPreambleString($prefs->getValue('spam_folder'))): ?>
   | <?php echo Horde::widget($notspam_link, _("Report as Innocent"), 'widget', '', '', _("Report as Innocent"), true) ?>
  <?php endif; ?>
  </td>
--- 32,38 ----
  <?php if (isset($spam_link) && $imp['mailbox'] != IMP::addPreambleString($prefs->getValue('spam_folder'))): ?>
   | <?php echo Horde::widget($spam_link, _("Report as Spam"), 'widget', '', '', _("Report as Spam"), true) ?>
  <?php endif; ?>
! <?php if (isset($notspam_link)): ?>
   | <?php echo Horde::widget($notspam_link, _("Report as Innocent"), 'widget', '', '', _("Report as Innocent"), true) ?>
  <?php endif; ?>
  </td>


-- 
# Dustin J. Mitchell
# dustin at ywlcs.org/djmitche at alumni.uchicago.edu


More information about the imp mailing list