From: Brian K. B. <beck@CLEMSON.EDU> - 2006-03-01 15:46:03
|
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On Tue, February 28, 2006 20:42, Peter Blajev wrote: >> I'm sorry about my incomplete/incorrect explanation. >> >> >> Here is what actually happens. When he is in SquirrelMail and >> click on Folders in the new window under Unsubscribe/Subscribe the list >> of >> subscribed folders appear but on the right (above the <Subscribe> >> button) >> instead of list of folder he gets the error I mention below. >> >> He has a lot of folders. 822 to be exact. > > Is that 822 mail folders? SquirrelMail just asks for a list of all the > folders the user has access to. The problem with this is UW-IMAP's > default setting is that the IMAP folder is in $HOME. If the user has a > large number of folders in their $HOME directory, SquirrelMail will most > likely sit and wait for UW-IMAP to read /every/ single file and folder in > the users' home directory. It even follows symlinks if I remember > correctly (I discovered this fact after I had a symlink to my hosting > environment, which housed about 5 different sites, and several of them had > many hundreds of files, and many files of hundreds of MB). > > There are two ways around this. The first is relatively easy, and a > SquirrelMail configuration change. The second is not so, and requires a > recompile of uw-imap. > > First method is to set a default folder prefix. The recommended SM setup > suggests that already. If you run config/conf.pl and select D, and type > uw, you'll notice it sets a default_folder_prefix to mail/. Create a > directory in the users' $HOME called mail/ and move all their folders into > that directory, find the subscription file (I think it's something like > .subscription, or .imapsub... it's been a /long/ time since I used uw), > and update all the subscriptions, and append "mail/" in front of them all. > This will make UW-IMAP only look inside the $HOME/mail/ folder. This > only fixes SquirrelMail, and doesn't make it easy on other clients. > > Second method requires you to rebuild uw-imap. I believe this is covered > by the uw-imap FAQ in the security section > (http://www.washington.edu/imap/IMAP-FAQs/index.html#security), and should > give you and idea. > > Now if he really does have 822 mail folders, then I think that he might > need to get out and see a garden, or maybe some flowers ;) I thought I > was an email-o-holic, but I stopped at 150 folders for personal stuff, and > 200 for work. > > It might also be worth considering a new mail infrastructure. I'm not > entirely sure on what kind of load you have on your server, or what kind > of user base you are supporting, but we've found in the past that UW-IMAP > isn't the most scaleable imap server (the more mail in one folder you get, > the slower things get). > > - -- > Jonathan Angliss > <jo...@sq...> I am having a smiliar problem. A user ( my boss ) noticed it yesterday. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 bytes) in /srv/www/htdocs/webmail/squirrelmail-1.4.3a/functions/mime.php on line 115 This error occures when access a specific message. The message is only 4.5M He only have 15 folders and using only 39M of disk space. The message is located in his INBOX along with only about 15 messages. thunderbird has no problem with the message. we are running: squirrelmail-1.4.3a suse 9 x64 amd cyrus IMAP php 4.3.4-43.46.8 Any ideas?? thanks -brian |