> Wm Mussatto said: (followup)
>
>> Paul Lesneiwski said:
>>
>>> On 1/10/06, Wm Mussatto <[EMAIL PROTECTED]> wrote:
>>>
>>>> Installing SM on new server (we have older version working on
>>>> current server). SM is from debian stable package: 1.4.4 <sorry
>>>> debian packages is down for the last couple of days> googled for
>>>> similar problems but no luck Setup: - debian Sarge 64 (Opteron)
>>>> - Apache (eventually ssl but not yet)
>>>> - Dovecote (but I don't think this is relevent)
>>>> - Mailbox type maildir
>>>> - maildrop 1.5.3 <- yes its eve at /usr/bin/maildrop
>>>> - PHP 4.3.10-16
>>>> - apache Apache/2.0.54
>>>> Plugins
>>>> Installed Plugins
>>>> 1. delete_move_next
>>>> 2. squirrelspell
>>>> 3. compatibility
>>>> No issues
>>>>
>>>>
>>>> Attempting to install serversidefilter
>>>>
>>>>
>>>> Tried both procmail and maildrop.
>>>>
>>>>
>>>> If $ALWAYS_CREATE = true;
>>>>
>>>>
>>>> SM generates:
>>>> Fatal error: Call to undefined function: _write_spam_filter() in
>>>> /usr/share/squirrelmail/plugins/serversidefilter/functions.php on
>>>> line 90
>>>
>>> Please grab code from plugin CVS, where this issue should be fixed.
>>>
>>
>> I'll try it and see. Ok found the csv will try moving in tomorrow.
>>
>>
>>>> when I successfully log in. If I have it set to false I get the
>>>> same error when I go to options->filters.
>>>>
>>>> We use real linux users with real addresses and their location is
>>>> tied to their website so I have to generate their real home
>>>> directory. To do this I've modified config.php (in
>>>> plugins/serversidefilters):
>>>>
>>>>
>>>> list($dir,$gecos,$gid,$name,$passwd,$shell,$uid) =
>>>> posix_getpwnam($username); I then use the $dir to determine the
>>>> various directories:
>>>
>>> This is clever. I don't have the code in front of me and it's been a
>>> little while, but I thought the C app su'd to the target user and
>>> got that information for itself.
>>
>> Not sure it will work yet ('die' behaves differently in php than perl)
>> but the config.php wants to set strings with the absolute addresses of
>> the files, at least as I read the comments and examples and our layout
>> depends on kind of user (real person, mail only client of one of the
>> sites we host, etc.)
>>
>>>> $FILTER_FILE_PATH = "$dir/.mailfilter";
>>>> $DEFAULT_DELIVERY = '$MAILDIR';
>>>> $LOCAL_MAILDIR = "$dir/mail/";
>>>> $USE_MAILDIRS = 1;
>>>> $VIRTUAL_DOMAINS = 0;
>>>> $FORWARD_FILE_TYPE = "forward";
>>>> $FORWARD_FILE_PATH = "$dir/.forward";
>>>> $FILTER_APP_PATH = '/usr/bin/maildrop';
>>>>
>>>>
>>>> In scripts I've chmod chowned filtercmd:
>>>>
>>>>
>>>> -rwsr-x--- 1 root www-data 2493892 Apr 19 2004 filtercmd
>>>>
>>>>
>>>> Any thoghts, help? Thanks. BTW: 2nd post no response to the less
>>>> detailed 1st post. On prior server was running Procmail Filter
>>>> Configuration with a hack to bypass the ftp function.
>>>>
>>>
>>> Post date?
>>>
>>>
> Ok finally found where CSV is on sourceforge. Picked up:
> serversidefilter-1.5-1.2.7-RC1.tar.gz
>
> The test.sh didn't like my "posix_getpwnam($username);" but I think php
> did Howevr now I'm getting other errors.
>
> BTW: I'm now trying:
> $workArray = posix_getpwnam($username);
> $dir = $workArray[0];
> (I wish I know php, but I live in the land of perl which is just
> differnt enough to confuse me).
>
> Anyway the current errors are:
> Warning: main(../../src/validate.php): failed to open stream: No such
> file or directory in
> /usr/share/squirrelmail/plugins/serversidefilter/options.php on line 35
This error is not from serversidefilters 1.5cvs. It is serversidefilter
1.4x or 1.5rc1 error caused by dependency on compatibility v1 API. Use
compatibility plugin v.1.3 or get latest serversidefilter plugin snapshot
from cvs. http://sourceforge.net/cvs/?group_id=95828
...
> I did notice that setup.php is NOT referenced (according to grep) in any
> of the php scripts in the serversidefilter directory.
It is not supposed be included by other plugin scripts. Script is loaded
by functions/plugin.php
> General question: why are single quotes used sometimes and double quotes
> other times?
Single quotes are used because variables are not parsed inside them.
Performance.
Double quotes are used in _() calls due to backwards compatibility with
gettext v.0.10.x.
> -------Followup------
> resolved these errors by ln -s
> /usr/share/squirrelmail/include/validate.php validate.php
> and ln -s /usr/share/squirrelmail/include/load_prefs.php load_prefs.php
wrong solution. downgrade compatibility plugin or upgrade serversidefilter
plugin.
-------Followup [2]
> well it doesn't blow up, but it also doesn't write to the ~user/.mailfilter
> file.
>
> ok I'll learn php one banged forhead at a time: should be:
> $workArray[] = posix_getpwnam($username);
> $dir = $workArray[0];
http://www.php.net/posix-getpwnam
home directory is $workArray['dir']
Check structure of array with 'sm_print_r($workArray);' call or read php
manual.
--
Tomas
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/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