Hello List,
it's me again.
Sorry for asking another question again.

I've installed the serversidefilter plugin 1.41 and the make test
seems to work but it doesn't copy the filterfile to it's final destination.

Okay but from the beginning - What i did:
- copied complete folder to /usr/share/squirrelmail/plugins
- cp config.php.sample -> config.php (edited the file)
  (I'm using maildrop without any virtual user or spamassassin)
- set user/group perm as mentioned in README
- edited script/Makefile for my needs
- make didn't complain
- make test looks good.

Now my config (config.php) relevant sections:
        $ALWAYS_CREATE = true;
        $FILTER_FILE_PATH = '/home/[USERNAME]/.mailfilter';
        $FILTER_APP_PATH = '/usr/bin/maildrop';
        $ALLOW_UNSUBSCRIBED = true;
        $LOCAL_MAILDIR = '$HOME/Maildir/';
        $USE_MAILDIRS = 1;
        $VIRTUAL_DOMAINS = 0;
All other options are commented out.

script/Makefile
   HTTPD_GROUP=www-data
   CFLAGS=
   LFLAGS=
   SQUIRRELMAILCONFIGFILE=/usr/share/squirrelmail/config/config.php
   FILTERCMD_CFLAGS=-DSQUIRRELMAILCONFIGFILE='"$(SQUIRRELMAILCONFIGFILE)"'
   SERVERSIDEFILTERHOME=../plugins/serversidefilter
   CHECKCREDS=checkcreds_cclient.o
   LIBS=/usr/lib/c-client.a -lpam -lcrypt -lresolv -ldl -lz
   I=/usr/include/c-client
   CCLIENT_CFLAGS=-I$I '-DMAIL_H="mail.h"' '-DLINKAGE_C="linkage.c"' -  
DIMAP_TIMEOUT=2

All other options are commented out.

sh test.sh
IMAP username: thorsten
IMAP password: passwd
Could not open /home/thorsten/.mailfilter
RESULT: 7
Pass: Filter put
Pass: You are able to correctly retrieve and save your filter file.
      Your filter file is saved in the current directory as 'filter'
If you do not need to perform additional tests, remove the file test_creds
Remove now? (Y/n):

Correct there's no /home/thorsten/.mailfilter.
Because i want the plugin to create one.
If i create it with touch i get a positive response for both tests.

When i log in an empty file is created in /tmp

cat /tmp/filterfile.thorsten
##Begin Filter Configuration -- Please do not edit by hand, use SquirrelMail
MAILDIR=$HOME/Maildir/ # Default mail directory

##End Filter Configuration
lisa:/usr/share/squirrelmail/plugins/serversidefilter/script#

Changing some options in Squirrelmail such as defining new rules,
the plugins seems to create a new file in /tmp

cat /tmp/filterfile.thorsten.tmp
##Begin Filter Configuration -- Please do not edit by hand, use SquirrelMail
MAILDIR=$HOME/Maildir/ # Default mail directory

###Von '' test '' INBOX.Trash '' m '' on '' off ''  '' Contains
if (/^Von:.*test/:h)
{
to "$MAILDIR/INBOX.Trash"
}

##End Filter Configuration

With these permissions:

ls -lha /tmp/filterfile.thorsten*
-rw-r--r--    1 www-data www-data      153 Sep 28 11:19
/tmp/filterfile.thorsten
-rw-r--r--    1 www-data www-data      270 Sep 28 11:19
/tmp/filterfile.thorsten.tmp

Why is the owner not my imap user?
Why is the filter file in my homedir empty?

file /home/thorsten/.mailfilter
/home/thorsten/.mailfilter: empty

I don't understand what i did wrong.

Can somebody give me hint.


Thanks again

Thorsten




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