[imp] mime_drivers.php: high processing?

Alain Fauconnet alain at ait.ac.th
Mon Oct 24 17:23:47 PDT 2005


On Mon, Oct 24, 2005 at 11:47:27AM -0300, david at infonet.com.br wrote:
> 
>    Hi,
>  
> 
>    When I read a message of text more than 1Mb im my webmail system, the process of the 
> apache consumes all time of CPU (100% in command TOP). Perhaps something related with the 
> file horde/imp/config/mime_drivers.php. This is the beginning of the file:
> 
> $mime_drivers_map['imp']['registered'] = array
>  ('plain', 'html', 'images', 'enriched', 'pgp', 'pkcs7', 'rfc822',
>  'zip', 'tnef', 'alternative', 'related', 'multipart');
> 
>    When I remove the part 'plain', the e-mail takes 2 seconds to open. With it 'plain' in 
> the file, the e-mail takes one minute to open (100% CPU all time).
> 
> 
> 	This is the heading of the message:
> 
> -----------------------------------------------------------------------------------------
> 
> Content-Type:  multipart/alternative; boundary="----
> =_NextPart_000_0005_01C4C673.3E0E9BE0" 
> Date:  Tue, 9 Nov 2004 15:46:11 -0200 
> Delivered-To:  david at infonet.com.br 
> From:  David Magno Santos de Almeida <david at infonet.com.br> 
> MIME-Version:  1.0 
> Message-ID:  <000801c4c684$07dfb2a0$0d00a8c0 at infonet.com.br> 
> Received:  (qmail 10507 invoked by uid 504); 9 Nov 2004 18:50:18 -0000 
> from david at infonet.com.br by iestancia.infonet.com.br by uid 501 with qmail-scanner-1.22 
> (sweep: 2.10/3.65. Clear:RC:1(200.241.52.2):. Processed in 8.558772 secs); 09 Nov 2004 
> 18:50:18 -0000 
> from unknown (HELO david) (Usuario-Autenticado:david@[200.241.52.2]) (envelope-sender 
> <david at infonet.com.br>) by 0 (qmail-ldap-1.03) with SMTP for <david at infonet.com.br>; 9 
> Nov 2004 18:50:06 -0000
>  
> Return-Path:  <david at infonet.com.br> 
> Subject:  teste 
> To:  david at infonet.com.br 
> X-MSMail-Priority:  Normal 
> X-Mailer:  Microsoft Outlook Express 6.00.2800.1437 
> X-MimeOLE:  Produced By Microsoft MimeOLE V6.00.2800.1441  
> X-Priority:  3 
> Cabeçalhos:  Ocultar Alguns Cabeçalhos  
> 
>   -  sem nome  text/html  1057.55 KB       
>  
> koldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdf
> koldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdfkoldefrcdf
> koldefrcdfkold 
> efrcdfkoldefrcdfkoldefrcdfkoldefrcdfkold...
> ...
> ... (... up to 2Mb)
(rest deleted)

Wouldn't that be the text justification (pretty printing) going nuts
because of the format of this message? (long lines with no blanks)

This brings back memories of a similar problem I had in the early days
of IMP 3.0... can't recall how I fixed it though :-(
Isn't there a setting somewhere to limit the lenght of the lines that
will be text justified?

Greets,
_Alain_


More information about the imp mailing list