[imp] smalls Attachments problem again

Robert Marchand robert.marchand@UMontreal.CA
Thu, 02 Aug 2001 10:13:59 -0400


Hi,

     It worked for me in 2.2.6 but I had to replace '$object->bytes' by 
'$mime->bytes'.  Was
this a typo?

Thanks.


At 12:20 01-08-02 +0000, you wrote:
>Hi,
>
>try this patch:
>
>--- mimetypes.lib       2000/09/15 20:20:12     1.8.2.21
>+++ mimetypes.lib       2001/08/02 12:16:33
>@@ -125,7 +125,8 @@
>
>         // set the size - bytes and kilobytes
>         $mime->bytes = (isset($mime->bytes)) ? $mime->bytes : 0;
>-       $mime->size = (isset($mime->bytes)) ? sprintf('%0.2f', $mime-
> >bytes/1024) : '?';
>+       $localeinfo = localeconv();
>+       $mime->size = (isset($mime->bytes)) ? number_format($object-
> >bytes/1024, 2, $localeinfo['decimal_point'], '') : '?';
>  } // mimeParse()
>
>  function mimeSummary ($mime) {
>
>I don't know if it works because I don't have a imp version 2.2.3 but it 
>fixed
>the problem in imp cvs.
>
>Btw, please don't send emails that consist mostly of signatures and pgp=
 keys.
>
>Jan.
>
>Zitat von Poirier Xavier <xpoirier@ch-bourg01.fr>:
>
> > Hi all,
> >
> > IMP 2.2.3 HORDE 1.2.3 LINUX mandrake 7.2 KERNEL 2.2.4 PHP 4pl1 ...
> > I posted before that I encountered sommes problems with attachment files
> > witch
> > are too small - they not appear like an attachment for the recipient !
> > I noticed that it is < 900 bytes of an attachment.
> > Someone says that I have to upgrade my IMP version (I hope it was not=
 the
> > outlook express adept!) to 2.2.4 , but I 'm sorry
> >
> > I CAN'T UPGRADE MY IMP version NOW!!
> >
> > Is there somewere an IMP adept who can help me to find the bug in the=
 code
> > ?
> > and I'll modify it.
> > Because ALL is working very good for us with IMP 2.2.3 !!!
> > Thanks.
> >
> > I love GNU! what a very good work!
> > xavier.
> >
>
>
>::::::::::::::::::::::::::::::::::::::::
>AMMMa AG - discover your knowledge
>:::::::::::::::::::::::::::
>Detmolder Str. 25-33 :: D-33604 Bielefeld
>fon +49.521.96878-0 :: fax  +49.521.96878-20
>http://www.ammma.de
>::::::::::::::::::::::::::::::::::::::::::::::
>
>--
>IMP mailing list: http://horde.org/imp/
>Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
>Frequently Asked Questions: http://horde.org/faq/
>To unsubscribe, mail: imp-unsubscribe@lists.horde.org

-------
Robert Marchand                 tél: 343-6111 poste 5210
DGTIC-SIT                       e-mail: robert.marchand@umontreal.ca
Université de Montréal          Montréal, Canada