>>>
>>> It look a bit strange to me, because often the error comes up
>>> directly after the login, but only in the big right frame.  The list of
>>> folders is displayed correctly, and when I click eg. on the inbox, it
>>> is displayed as normal.  Sometimes, the reload of the the folderlist
>>> does not work and results in the same error message, but then, I can
>>> simply reload it manually, or eg. select a mail, without and problems.
>>>
>>>
>>> Any hints, how I can solve the problem or search for more info?
>>>
>>
>> squirrelmail is not supposed to write to default_pref. This file stores
>> default preferences, that are used when user does not have preference
>> file.
>>
>> if you are running php in safe mode, system also checks file ownership.
>> Owner must be the same as owner of script, that
>> accesses the file. Not webserver's user.
>
> In that case, the error message is a bit misinterpretive.  As in the
> code, SM checks for the uid of the running httpd, not the owner of the
> script.  According to the INSTALL file, the directory should be owned by
> the user running httpd.  And I haven't found any part telling me, that the
> SM sources should be owned by that user, too.
> Which is normally no option for me.

This is part of php safe mode limitations. Not applied to every
squirrelmail install.

http://www.php.net/features.safe-mode

> BTW: Why does this error occur only randomly?  Does it have
> something to do with caching?
>
> Safe mode is off, btw.

Your users might loose their preferences randomly because system
maintenance script clean /var/tmp. Or you get that error after each new
login.

>> squirrelmail data directory should not be stored in /var/tmp.
>> http://www.pathname.com/fhs/pub/fhs-2.3.html.
>> Chapter 5. The /var Hierarchy -> /var/tmp :
>>
>
> Okay, right, it should be moved to /var.
>
>
> Nevertheless, I think, I have found one part of the problem:  If SM,
> for any reason, thinks, the user-pref file does not exist, it tries to
> search for default_pref.  The problem is, that in checkForPrefs() it
> searches for "SM_PATH . 'data/default_pref'", while SM_PATH is the
> installation path of SM, and the data directory didn't exist.
>
> Why does SM search inside the web-tree of SM, while it is said in
> the documentation, that one shouldn't store the datafiles there?

Actually it tries $data_dir/default_pref first.

$default_pref = $data_dir . 'default_pref';

/* If it is not there, check the internal data directory. */
if ([EMAIL PROTECTED]($default_pref)) {
    $default_pref = SM_PATH . 'data/default_pref';
}

-- 
Tomas


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
--
squirrelmail-users mailing list
Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [EMAIL PROTECTED]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
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