[imp] Patch for templates/mailbox/actions.inc

Steven Premeau premeau at uwp.edu
Thu Mar 6 16:06:34 PST 2003


It's been mentioned in the list that there's going to be an IMP 3.2.1.

If that's the case, I would like to have this patch included.  This is a
patch that removes the "Hide Deleted" choice and action if delhide is
locked.

I noticed that it's been included in the HEAD of CVS, but I got burned by
it not being in 3.x  (Some students were hiding all of their deleted
messages, and wondering why their disk quota was exceeded.)

Thanks,
Steve.
-----

*** actions.inc.cvs	Sat Jul 20 10:22:55 2002
--- actions.inc	Mon Feb 24 14:35:16 2003
***************
*** 18,26 ****
--- 18,28 ----
      </td>
      <td align="right">
      <?php if (strstr($imp['protocol'], 'imap') && !$prefs->getValue('use_trash')): ?>
+       <?php if (!$prefs->isLocked('delhide')): ?>
          <a class="widget" href="<?php echo Horde::purl('mailbox.php?actionID=' . HIDE_DELETED . "&page=$page") ?>"
           onmouseover="status='<?php echo addslashes($deleted_prompt) ?>'; return true;"
           onmouseout="status='';"><?php echo $deleted_prompt ?></a> |
+       <?php endif; ?>
          <a class="widget" href="<?php echo Horde::url('mailbox.php?actionID=' . EXPUNGE_MAILBOX . "&page=$page&uniq=" . uniqid(rand())) ?>"
           onmouseover="status='<?php echo addslashes(_("Purge Deleted")) ?>'; return true;"
           onmouseout="status='';"><?php echo _("Purge Deleted") ?></a>




More information about the imp mailing list