Hello Chris,
On Wednesday, December 04, 2002, Chris Hilts wrote...
>> I then deleted spurious files from my home directory, it seems that
>> the IMAP server scans through the home directory in order to decide
>> what is a mail folder and what is something else. This made a lot
>> of difference.
>> Jonathan Angliss said something about setting the root mail
>> directory in conf.pl, but this was already set so I don't know if
>> that would also help, he may clarify this for you.
My method was more of a hack, than a proper solution, but the
observations made are correct. UW IMAP reads and stores it's mails
(default code from UW does this) in the $HOME directory or the user.
This can lead to a *big* issue if you have a lot of files, symlinks
and such. I have attached my original mail on how I fixed this issue a
*long* while back (I've since changed to a better IMAP server).
> If possible, configure your mail system so that all mailboxes are
> contained in a subdirectory, not your home directory. The IMAP
> server is having to figure out what is mail and what isn't amongst
> all the stuff you have saved in your home directory. If you put all
> your boxes in a subdirectory (say, ~/mail), then there's a lot less
> to sort through, and it's all mailboxes anyway. I didn't see
> Jonathan's message, but that sounds to me like what he may have been
> talking about.
My temporary solution was to set a default folder prefix as something
like mail/ in conf.pl so as to make SquirrelMail force the loading of
mails from inside that folder (as I said, bit of a hack). A better
solution is a recompile of UW IMAP changing the mentioned details (see
attached mail), or using a different IMAP server.
--
Jonathan Angliss
([EMAIL PROTECTED])
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
A while back I posted a question on a problem I was having with SM,
and uw-imapd when I went to the folders list, it'd freeze the whole
site for ages, then timeout, spawning several imapd processes, and
forcing a massive load on the server. With assistance from Tod
Weitzel, we were able to pinpoint the issue, and managed to find a way
about it. I believe the problem is caused when the imapd server tries
to cascade into all sub-directories trying to establish a list of
subscribed folders for the user. In my case I have about 20 folders,
with 3 symlinks to other folders on the drive for websites etc. When
uw-imapd cascaded through those folders it'd suck up all the resources
to do so, and spawning several imapd services at the same time. The
solution Tod came up with is as follows (this is documented in the
uw-imap docs):
,----- [ docs/CONFIG ]
| Example 2: suppose you want to change c-client's idea of the
| user's mailbox directory to be the "mail" subdirectory of the user's
| home directory instead of the user's home directory. You will want to
| change variable mailsubdir, changing the line that reads:
|
| static char *mailsubdir = NIL; /* mail subdirectory name */
| to be:
| static char *mailsubdir = "mail";/* mail subdirectory name */
`-----
When doing this, it forces uw-imapd to work inside the ~/mail
directory, and not cascading through sub-directories in the ~/. This
probably saves a lot of resources doing it this way. If anybody else
is having a similar problem, you may want to try this solution.
Thanks to Tod for the assistance.
- --
Jonathan Angliss
([EMAIL PROTECTED])
-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt
iQA/AwUBPU6TmSuD6BT4/R9zEQKSfwCdFHKxacC1VKNbAUjsctRC3gvG3PoAn2+0
n/jCRm5VsACaVEjsSkCrzb5L
=KW7b
-----END PGP SIGNATURE-----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
http://squirrelmail.org/cvs
--- End Message ---