Arild Jensen said:
> That did it! Thank you, that you! Especially for fixing it before I get to
> demo SM to my boss.
>
> Some minor things:
>
> * It was on line 1091, not 1074. I am using SM 1.4.1-2.

That should be fine, I was working out of CVS so the numbers were a bit
different.

> * Viewing the email takes a long time. About 12 seconds. During that time
> httpd is taking up most of the CPU. I am running the webserver on an 1100
> MHz Celeron w/256 MB RAM and Red Hat 9. Network is switched 100 Mbit/s.
> Other emails are shown in less that a second.

That's the HTML sanitizer.  It goes through an HTML file and changes the
HTML so it can be views in a web page (things like turning a body tag into
a div tag) and it removes tag which might cause security problems.  It
seems to be a bit slow on the email you sent me, which is rather large. 
It looks to have been exported from a Microsoft product which is famous
for putting in a lot of unneed tags and attributes.

Seth.
>
> -Arild
>
>
> ----- Original Message -----
> From: "Seth Randall" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 31, 2003 08:38
> Subject: Re: [SM-USERS] Problems reading html email created my M$ software
>
>
>> Looks like SquirrelMail doesn't like the attribute x:num that MS
>> programs
>> put in.  It's actually an XML namespace attribute.  Try changing line
>> 1074
>> in functions/mime.php from:
>>           $regary = sq_findnxreg($body, $pos, "[^\w\-_]");
>> to:
>>           $regary = sq_findnxreg($body, $pos, "[^:\w\-_]");
>> this seems to change it so it treats x:num as just another attribute.
>> Let
>> me know if it works for you (it seems okay here).  If it does, I'll
>> change
>> it in CVS.
>>
>> Seth.
>>
>> [EMAIL PROTECTED] said:
>> >> Arild Jensen wrote :
>> >>> I have problems reading an HTML email created by M$ software:
>> >>>
>> >>> In Outlook Express it looks like this:
>> >>> http://www.counter-attack.com/sm/oe.gif
>> >>>
>> >>> and in SquirrelMail it looks like this:
>> >>> http://www.counter-attack.com/sm/sm.gif
>> >>>
>> >>> I am using SM 1.4.1-2 on RH 9.
>> >>>
>> >>> I'll be happy for forward the email in question to anyone wanting to
>> >>> dig
>> >>> down into this problem
>> >>
>> >> Hum,
>> >>
>> >> looks like you didn't check the 'view mail as HTML by default' or
>> >> sthg like that in  'options' -> 'display preferences' ...
>> >
>> > wouldn't be surprised if it was just non-standard HTML tags; not sure
>> if
>> > SM should be obliged to support them... but then again, w/out seeing
>> the
>> > message, I'm probably just jumping the gun
>> >
>> >
>> >
>>
>>
>> --
>> Seth Randall
>> IT Support Specialist
>> Missoula Federal Credit Union
>> [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> --
> squirrelmail-users mailing list
> List Address: [EMAIL PROTECTED]
> List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
> List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>


-- 
Seth Randall
IT Support Specialist
Missoula Federal Credit Union
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to