Re: awful performance: expunging behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

I'm going over some old emails, and I don't believe this was ever
answered, so I'll throw in my $0.02.

John Madden wrote:
| Not sure if this is fixed/re-worked in 1.5, but in 1.4, I'm seeing some
| awful behavior regarding auto_expunge.  I think auto_expunge is a good
| thing -- people expect their mail clients to behave in the manner it
| provides.  However, when enabled, the client forces an expunge on every
| mailbox view/select/load, which causes undue stress on the IMAP server.

You'll be happy to know that the behavior has indeed been changed in the
1.5 branch.  As you've noticed, we EXPUNGE on every SELECT call, which
can be, and as observed, quite brutal on some servers.

In the development branch, we only issue an EXPUNGE in 2 situations.
The first being a user requesting it.  I believe this is only possible
when the auto_expunge option is set to false in the config.php.

The second situation occurs on the deletion of messages, and when
auto_expunge is enabled.  This means that it'll only issue an EXPUNGE
when you delete a message, which is more akin to the behavior of other
clients.

We should probably backport the behavior from the dev branch, even if
not coded exactly the same due to the template changes and such.
[..]

| Expunge is unnecessary if you're not doing any writes to the mailbox, so
| why are we doing it on every click?  I couldn't find an answer to that,
| so I "fixed" the problem by commenting out the calls to
| sqimap_mailbox_expunge in mailbox_display.php:showMessagesForMailbox and
| imap_mailbox.php:sqimap_mailbox_select().  If anyone has any other
| suggestions, I'd be happy to explore them.

It'd probably be a good idea to remove those, and shift to the
sqimap_messages_delete function.  Probably wouldn't take too much to
research if it might be needed else where, but it shouldn't be too much
work.

- --
Jon Angliss
<jon@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg7icMACgkQK4PoFPj9H3PhPgCgmW+lPM+/witbe8dF7U/9X/XY
9woAoJ5su/77QdVgOenuwBt15ZUlV0aH
=xK5v
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux