Jason Munro | 1 Oct 2003 06:49

apd trace output

Hey all,
  I have been playing with the apd PHP debugger and thought you might like
to see some of the numbers for squirrelmail 1.5 CVS (dev? sorry, can't keep
track these days!). Anyway the debugger offers some interesting info about
function calls and expense. Attatched is the text for a trace on
right_main.php for a stock 1.5 CVS install with no plugins activated. The
trace was taken for right_main after hitting the 'next' to load page 2 from
page 1 of INBOX at 15 messages per page without server side sorting. System
is Debian GNU/Linux (unstable), UW imap on port 143, Apache2 and PHP 4.3.2.

Enjoy!

btw, I have been testing the stable branch for a long overdue update of our
squirrelmail setup at work and things look very nice. Good work everyone!

\_____ Jason Munro ________________________
 \_____ jason <at> stdbev.com ___________________
  \_____ #hastymail at irc.freenode.net _____
   \_____ http://hastymail.sourceforge.net ___
Trace for /opt/apache2/htdocs/squirrelmail/src/right_main.php
Total Elapsed Time =    2.56
Total System Time  =    0.03
Total User Time    =    0.26

         Real         User        System             secs/    cumm
%Time (excl/cumm)  (excl/cumm)  (excl/cumm) Calls    call    s/call  Memory Usage Name
--------------------------------------------------------------------------------------
 30.8  0.08  0.18   0.08  0.14   0.00  0.02    33   0.0024    0.0042            0 require_once
(Continue reading)

Jonathan Angliss | 1 Oct 2003 06:12
Favicon

Re: Mail Question

Hello Paultest,
On Tuesday, September 30, 2003, paultest wrote...

> Hi
> When deleteing email from webmail, some of our customers had as many as
> 1000+ messages. We are finding that we can only delete 1000 at a time. Is
> there a limit as to how many we can delete at a time? Is there anything else
> I need to know about this topic.

> One of the problems we are having is it takes about 10 minutes to delete all
> those emails.

  How did you establish you can only delete 1000 at a time? Do you see
  errors? If so, what? What IMAP server are you using? Are the mails
  large in size, or small text emails?

--

-- 
Jonathan Angliss
(jon <at> squirrelmail.org)

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: squirrelmail-users <at> lists.sourceforge.net
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

(Continue reading)

Jason Munro | 1 Oct 2003 07:07

apd trace output (take 2)

Hey all,
  for comparison, here is the exact same system and the same trace on
right_main.php, however this one is collected on login (INBOX contains 224
messages). One can be thankful for caching after comparing this with the
previous trace :)

\_____ Jason Munro ________________________
 \_____ jason <at> stdbev.com ___________________
  \_____ #hastymail at irc.freenode.net _____
   \_____ http://hastymail.sourceforge.net ___
Trace for /opt/apache2/htdocs/squirrelmail/src/right_main.php
Total Elapsed Time =    5.15
Total System Time  =    0.05
Total User Time    =    1.27

         Real         User        System             secs/    cumm
%Time (excl/cumm)  (excl/cumm)  (excl/cumm) Calls    call    s/call  Memory Usage Name
--------------------------------------------------------------------------------------
 16.5  0.20  0.20   0.21  0.21   0.00  0.00  8847   0.0000    0.0000            0 substr
 14.2  0.13  0.13   0.18  0.18   0.00  0.00  5452   0.0000    0.0000            0 strpos
  9.4  0.15  0.15   0.12  0.12   0.02  0.02  1602   0.0001    0.0001            0 _
  6.3  0.08  0.08   0.08  0.08   0.00  0.00  2285   0.0000    0.0000            0 preg_match
  6.3  0.31  0.57   0.08  0.13   0.00  0.01    33   0.0024    0.0039            0 require_once
  4.7  0.03  0.03   0.06  0.06   0.01  0.01   675   0.0001    0.0001            0 implode
  3.9  0.02  0.02   0.05  0.05   0.00  0.00  3378   0.0000    0.0000            0 trim
  3.9  0.06  0.06   0.05  0.05   0.00  0.00  1701   0.0000    0.0000            0 explode
  3.9  0.07  0.07   0.05  0.05   0.00  0.00  1591   0.0000    0.0000            0 str_replace
  3.9  0.08  0.08   0.05  0.05   0.00  0.00  2563   0.0000    0.0000            0 strlen
(Continue reading)

lcb5 | 1 Oct 2003 15:18
Picon
Favicon

Re: squirrelmail setfocus on textarea on reply feature

request
From: "Lee Brink" <lcb5 <at> cornell.edu>
To: <squirrelmail-devel <at> lists.sourceforge.net>
X-Priority: 3
Importance: Normal
Reply-To: lcb5 <at> cornell.edu
X-Mailer: SquirrelMail (version 1.2.11)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Quoting Chris Hilts (tassium <at> squirrelmail.org):
> Er.. Noooo.  That would be top-posting, and is poor form. (AKA "yucky")
> Quoted text comes first, then the reply.

I have to disagree. I that I get top-posted emails. It save me from
scrolling down throughout the message; with a quick glance I can read the
new text. With the volume of mail I get each day for my job alone if I had
to scroll through each and every message to read the new text I would
quickly stop responding to a lot of people.

Inline quoting & responding is one thing, scrolling through screen after
screen of quoted email to just read one or two lines of text becomes
intolerable after a short while.

With this patch hopefully I can modify SquirrelMail to handle that as an
option on a per user basis. Let the user decide IMO....

Now HTML mail... :)

(Continue reading)

Alexandros Vellis | 1 Oct 2003 15:55
Picon

Netiquette [OFF] (was: Re: squirrelmail setfocus on textarea on reply feature )

On Wed, 1 Oct 2003 09:18:46 -0400 (EDT)
lcb5 <at> cornell.edu wrote:

> scrolling through screen after screen of quoted email to just read one
> or two lines of text becomes intolerable after a short while.

And that's why people have to delete quoted text, too. :-) Quotation
serves only for reminding what the original message was about, and it
only takes two lines to do that.

Every text about netiquette will tell you the same. For instance
(http://www.cs.queensu.ca/FAQs/email/etiquette.html):

"Include only the minimum you need from the original message. One of the
most annoying things you can encounter in e-mail is to have your
original 5-page message quoted back at you in its entirety, with the
words "Me too" added at the bottom. Quote back only the smallest amount
you need to make your context clear."

The most extreme example I have seen is, somewhere around 15 mails, one
top-posted over the other, each one with its own HTML formatting too.

If it was up to me, I would even go as far to allow only 4 lines in the
signature textbox, so as to enforce good netiquette practices.... Hmm
now that I think of it, it's not a bad idea... :)

--

-- 
Alexandros Vellis       University of Athens
avel <at> noc.uoa.gr         Network Operations Centre
        http://www.noc.uoa.gr/~avel/
(Continue reading)

Gunnar Wagenknecht | 1 Oct 2003 16:59
Picon

Re: Netiquette [OFF] (was: Re: squirrelmail setfocus ontextarea on reply feature )


Alexandros Vellis sagte:

>> scrolling through screen after screen of quoted email to just read one
>> or two lines of text becomes intolerable after a short while.
>
> And that's why people have to delete quoted text, too. :-) Quotation
> serves only for reminding what the original message was about, and it
> only takes two lines to do that.

To be honest you both are right. Especially in mailinglists and in mail
communication with experienced Linux users it is a "nettiquette" (and most
often a must-have) not to do a full quote below your message. But in
private communications it should be up to you and in business
communication it might be a must to have a full-quote below your answere.

OK, sometimes it is possible to answer in line in business communications,
too. But as long as the majority of software used in such communications
is Outlook or Notes you will always have problems like that and it's
getting worse every day. Even free webmail services are migrating to HTML
and users like it.

Thus, the software must be smart enough and it is ok to have such an
option but it should be disabled by default.

Cu, Gunnar

--

-- 
Gunnar Wagenknecht
http://www.familie-wagenknecht.de
(Continue reading)

Chris Keating | 1 Oct 2003 20:55

foldLine mangling Content-Type boundary in Deliver.class.php

Hello I'm running Squirrelmail 1.4.0, but I think this problem may be present in most 
versions of Deliver.class.php from what I've seen from browsing through the cvs archives. 

The problem is this, after the Content-Type header has been assembled in prepareMIME_Header()
a call to foldLine is made on each of the headers found in $header.

This causes a valid Content-Type line like this:

Content-Type: multipart/mixed;charset=iso-8859-1;boundary="----=_20030929151231_91833"

To become a problem causing line like this:

Content-Type: multipart/mixed;charset=iso-8859-1;boundary="----=
     _20030929151231_9183

As you can see the boundary now includes a new line and some additional spaces that weren't 
there before and the end quote has magically disappeared. This causes my mozilla mail reader
to think that there isn't any content to the message since the boundaries that are placed into
the actual message by squirrelmail aren't mangled.

A simple fix for this may be to not fold the Content-Type header, a more in depth fix 
would require foldLine to respect the contents of "'s and try to do it's business elsewhere.

Please include me in replies to this message as I have turned off mail delivery for my subscription 
to this list. :P

--

-- 
Chris Keating
chris <at> athertonsolutions.com

(Continue reading)

p dont think | 2 Oct 2003 03:47

RE: squirrelmail setfocus on textarea on reply feature request

> > > There should also be an option to add a certain number of line
> breaks to
> > > the textarea on reply so that the quoted text is not at the top of
> the
> > > textarea; so you can reply above the quoted text without having to
> press
> > > enter to move the quoted text down before you start typing your
> reply.
> >
> > It is generally considered good practice to reply /below/ the
message
> you
> > are responding to rather then above.  You should also not quote the
> whole
> > messabe but only what is necessary for you response to make sense.
> These
> > are even more important on a mailing list where people reading your
> reply
> > are not necessarily the person who sent the original message.  I'm
not
> > saying I do things perfectly right either but a search for realavent
> terms
> > on Google could fill you in on these bits and more.
> 
> The other thing that really makes it difficult to reply in context is
> sending HTML-formatted mail.  Please make sure you send your email in
> plain text at least to the mailing lists here.
> 
> I am attaching a patch that is a bit simpler than the one Shadow(?)
> sent.  Merely setting focus on the body is not a good solution, since
(Continue reading)

Daniel W | 2 Oct 2003 12:13

Re: Fix for "you must be logged in" error ...

>
> It will be needless soon. The changes you're making are already on the
> books of my work (about 90% done) so that we can have cookieless
> sessions.
>

Fantastic - then hopefully it'll start working with Netscape 4.x etc.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-devel mailing list
List Address: squirrelmail-devel <at> lists.sourceforge.net
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=7139
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Paul Thompson | 2 Oct 2003 21:32
Favicon

Back

I thought it might be therapeutic to poke my head around here for a 
little while. So you could say that I am back, perhaps.

I hope the project is going well. Congrats to those who have been 
blazing the trails for the last year. Maybe I'll do something useful.

Paul

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-devel mailing list
List Address: squirrelmail-devel <at> lists.sourceforge.net
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=7139
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel


Gmane