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

Warning: main(): Failed opening '../../src/validate.php' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/squirrelmail/plugins/serversidefilter/options.php on line 35

Warning: main(../../src/load_prefs.php): failed to open stream: No such
file or directory in
/usr/share/squirrelmail/plugins/serversidefilter/options.php on line 36

Warning: main(): Failed opening '../../src/load_prefs.php' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/squirrelmail/plugins/serversidefilter/options.php on line 36

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/usr/share/squirrelmail/plugins/serversidefilter/options.php:35) in
/usr/share/squirrelmail/functions/global.php on line 333

Fatal error: Call to undefined function: set_up_language() in
/usr/share/squirrelmail/functions/imap_general.php on line 574

I did notice that setup.php is NOT referenced (according to grep) in any
of the php scripts in the serversidefilter directory.

General question: why are single quotes used sometimes and double quotes
other times?

-------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
-------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];

of course debug now gives me:
unlink("/var/spool/squirrelmail/attach//serversidefilter/filterfile.mussatto.tmp")
/usr/share/squirrelmail/plugins/serversidefilter/options.php
line 226

William R. Mussatto, Senior Systems Engineer
http://www.csz.com
Ph. 909-920-9154 ext. 27
FAX. 909-608-7061





-------------------------------------------------------
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

Reply via email to