Hello Saturne,
On Friday, December 13, 2002, saturne wrote...

> the slowness of squirrelmail comes from several small things, of
> which some, I think, can be solved in the near future.

  We're hoping we can get some of the speed issues resolved, and in
  fact the development series is faster in some areas that stable.

> squirrelmail is a project GNU which must be able to be appropriate
> has a maximum of users, on a maximum of platforms, with a maximum of
> extensions, and several use potential.taking into account these
> engagements, squirremail will be forcing slower than if it were
> adapted to only one manner of use (mysql for example), and adaptable
> to only one type of waiter configured in a certain manner (the
> breakage-neck can always improve the code to reduce all that, with
> their own risks and dangers;)

  Forcing a dependency on a system such as MySQL breaks SquirrelMail
  away from what it's trying to be, have as few a depencies as
  possible.
 
> one knows, (I say sorry) and it is quite real, "opening writing
> reading closing" of a file is much heavier for a waiter than the
> reading in a base of data. To propose the alternative of all to be
> able to pass in data base for those which wish it would be to
> improve the speed of the application considerably. Several users say
> that the opening of squirrelmail is slow I counted that it verifiait
> on average 3 times the session by action, that is to say has the
> opening (I counted) a total of 9 times (without spoken about the
> creation of the session).

  One of the things I am currently reviewing is the sessioning, and
  the extensive use of it. My plans include making it flexible enough
  to allow the use of a database storage for the session information
  as well as allow the standard usage of session (plain files).
 
> I propose: possibility of using the session in a data base (i think
> that really will accelerate the opening)

  This is what I had planned. I was going to try making a custom
  session system of sorts that'd allow integration with most database
  types (maybe just use PEAR), or stick with the standard file format
  that PHP currently uses.

> I also propose for a saving in space in the data bases (it is really
> enormous there, for those which badly have many users) to create
> another table with a field "iduser" and a field "user", and make a
> function of pre-requete to be on having the id (I believe that in
> mysql, there is problems with "update" and relations) it is better
> to have for a user 20 int5( for example, i.e. 99 999 possible users)
> and only one 128 varchar, that like currently 20 128 varchar for 1
> only user (and sometimes more)

  I am not sure what you are trying to do with this? Could you explain
  a little more.

> Now i have a little question:

> in function  attachSelectedMessages($msg, $imapConnection) $identity is
> in global, but i can't find it anywhere in all file (move_messages.php);
> is it significant in this file? . in reality, i modify  $identity (now
> for me it's a username, not 0 1 ...),

  $identity is a value used to set the From field. This is normally
  set to 0 unless you have multiple identities setup (see Options ->
  Personal Information). I introduced some code that would allow for
  the SquirrelMail interface to attempt to pick an identity based on
  who the mail was addressed to.

> all squirrelmail work fine, but i've a problem with "forward". he
> write the mail in ../data/, but don't put it in attachment file
> (display and send). i don't understand why, because when i write a
> new message with a attachement file, all is good. attachement'file
> write, display, and delete when message was sent. an idea? maybe the
> problem is about code writing into session file, but i don't see
> why.

  There is certain information stored in the session file when
  composing a new email, or a forward. I believe details on the
  attachments are stored in this session information, for use in the
  sending of the attachment. Have you checked the items created in the
  ../data/ directory to see if they are really the files you attached,
  and that they are not empty?  For an experiment, at the bottom of
  the src/compose.php file, above the closing of the HTML tags (about
  line 841-842), put in the following lines:

    echo '<pre>';
    print_r($_SESSION);
    echo '</pre>';

  What you should see then is a large session array containing a lot
  of useful information. This is probably about the time you scream
  and pull your hair out as you realize how much we use sessions, and
  how much stuff probably shouldn't be in there (I'm working on the
  review). Scroll down, and check to see if you have an attachments
  item, and check to see if it has all the information to the file you
  are supposed to be including as your attachment. If you don't, then
  the session isn't being set properly, at which point we know where
  to start looking.

-- 
Jonathan Angliss
([EMAIL PROTECTED])



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
--
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