[dev] Re: [horde] problem with attachments , log file and segfaults

Serge Grondin SGrondin at csbf.qc.ca
Fri May 23 12:59:32 PDT 2003


Eric Rostetter a écrit :
> 
> Quoting sysadmin at intergold.net:
> 
> > > Sounds like it probably isn't a php issue, but could also be that squirrel
> > > mail changes the limit on the fly?  (Don't know, never used squirrel mail).
> >
> > Any changes made to the upload_max_filesize in php.ini is reflected in the
> > compose window of the squirrel mail (It shows the max size that can be
> > attached) , so it must be taking the value from php.ini.
> 
> Hey!  That's a great idea.  Anyone want to add this to the IMP compose
> window?  It would prevent a lot of user questions as well as help the
> admins trouble shoot attachment upload problems.
> 

Here is a little patch to do just that.

For the IMP RELENG version

# cvs diff -u compose.inc
Index: compose.inc
===================================================================
RCS file: /repository/imp/templates/compose/compose.inc,v
retrieving revision 2.123.2.25
diff -u -r2.123.2.25 compose.inc
--- compose.inc 27 Mar 2003 17:08:35 -0000      2.123.2.25
+++ compose.inc 23 May 2003 19:36:30 -0000
@@ -397,7 +397,7 @@
 <tr><td colspan="2">&nbsp;</td></tr>
 <tr class="header">
     <td colspan="2" height="25" class="header">
-        <b>&nbsp;<a name="attachments"></a><?php echo _("Attachments")
?></b>
+        <b>&nbsp;<a name="attachments"></a><?php echo
sprintf(_("Attachments of maximum size of %s"),
ini_get('upload_max_filesize')) ?></b>
     </td>
 </tr>


For the IMP HEAD version

# cvs diff -u compose.inc
Index: compose.inc
===================================================================
RCS file: /repository/imp/templates/compose/compose.inc,v
retrieving revision 2.228
diff -u -r2.228 compose.inc
--- compose.inc 21 May 2003 01:07:28 -0000      2.228
+++ compose.inc 23 May 2003 19:55:13 -0000
@@ -514,7 +514,7 @@
 <tr><td colspan="2">&nbsp;</td></tr>
 <tr class="header">
     <td colspan="2" height="25" class="header">
-        <b>&nbsp;<a name="attachments"></a><?php echo _("Attachments")
?></b>
+        <b>&nbsp;<a name="attachments"></a><?php echo
sprintf(_("Attachments of maximum size of %s"),
ini_get('upload_max_filesize')) ?></b>
     </td>
 </tr>


-- 
Serge Grondin
Technicien en Informatique
Commission Scolaire des Bois-Francs
Tel. bur.:   (819) 758-6453, poste 2920
e-Mail bur.: SGrondin at csbf.qc.ca
e-Mail per.: sergegro at sympatico.ca



More information about the horde mailing list