[imp] Suggestion: removing quota info from message view

Lachlan Cameron-Smith lachlan.cameronsmith@adelaide.edu.au
Tue Nov 12 04:46:26 2002


Hi,

I've a quick suggestion for IMP: as the quota information is shown when 
viewing your mailbox (if you configure it), perhaps it doesn't need to 
be shown when viewing messages as well? We've found that removing this 
from message.php has made a noticable improvement in page loading times.

A short patch against IMP 3.1 follows to remove the quota information 
from message.php.

Regards,
Lachlan


--- message.php Tue Nov 12 14:48:24 2002
+++ message.php.orig  Tue Nov 12 14:48:16 2002
@@ -498,10 +498,6 @@
      include IMP_BASE . '/status.php';
  }

-if (!empty($conf['hooks']['quota']) && 
function_exists($conf['hooks']['quota'])) {
-    echo call_user_func($conf['hooks']['quota'], $imp);
-}
-
  $prev_index = $array_index - 1;
  $next_index = $array_index + 1;
  if ($array_index != 0) {


-- 
Lachlan Cameron-Smith
Systems Specialist, ITS, Adelaide University

-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information which may be confidential and/or
copyright.  If you are not the intended recipient please
do not read, save, forward, disclose, or copy the contents
of this email. If this email has been sent to you in error,
please notify the sender by reply email and delete this
email and any copies or links to this email completely and
immediately from your system.  No representation is made
that this email is free of viruses.  Virus scanning is
recommended and is the responsibility of the recipient.



More information about the imp mailing list