Re: Websieve and Cyrus 2.1.11 (smartsieve doesn't work neither)

2003-01-18 Thread marc . bigler

Check the user's sieve directory (eg /usr/sieve/k/ken), and make sure
there is a link from 'default' to an actual script file.  You should see
something like:

lrwxrwxrwx1 cyrusmail   10 Nov 10  2001 default -
ken.script
-rw---1 cyrusmail 8877 Jan  8 16:19 ken.script

I've checked and this gets done correctly, now I think I found out my
problem. When I did my tests I used the same account to send mail to myself
and it looks like this doesn't trigger the vacation. This time I tryed to
send me a mail from another test account and then it worked !!

I just saw another behaviour where I would like to know if this is normal
or not. So in my case I've got vacation activated and also a normal filter
which says if subject = something then REJECT mail. The filter works when
the vacation is deactivated but when I activate the vacation this reject
filter doesn't work. Is that the normal behaviour ?

Regards






Re: Websieve and Cyrus 2.1.11 (smartsieve doesn't work neither)

2003-01-18 Thread Ken Murchison


[EMAIL PROTECTED] wrote:
 
 Check the user's sieve directory (eg /usr/sieve/k/ken), and make sure
 there is a link from 'default' to an actual script file.  You should see
 something like:
 
 lrwxrwxrwx1 cyrusmail   10 Nov 10  2001 default -
 ken.script
 -rw---1 cyrusmail 8877 Jan  8 16:19 ken.script
 
 I've checked and this gets done correctly, now I think I found out my
 problem. When I did my tests I used the same account to send mail to myself
 and it looks like this doesn't trigger the vacation. This time I tryed to
 send me a mail from another test account and then it worked !!

Yeah, Sieve checks to make sure that you're not sending a vacation
message to yourself to prevent mail loops.  And besides, if you're on
vacation, you probably already know it  :)


 I just saw another behaviour where I would like to know if this is normal
 or not. So in my case I've got vacation activated and also a normal filter
 which says if subject = something then REJECT mail. The filter works when
 the vacation is deactivated but when I activate the vacation this reject
 filter doesn't work. Is that the normal behaviour ?

Yes, reject isn't allowed in combination with other actions (see RFC3028
section 2.10.4).

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



Re: Websieve and Cyrus 2.1.11 (smartsieve doesn't work neither)

2003-01-17 Thread marc . bigler

You could take a look at SmartSieve, at:

   http://smartsieve.sourceforge.net

Its an active project, written in PHP, and works with Websieve scripts.

Hi, thanks for the link, I just had a try at that project and same result,
everything looks fine, the script gets created and activated but when
sending test mails nothing happens... No idea why, there are also no error
messages in my logs. Any ideas what I should check ?

Regards






Re: Websieve and Cyrus 2.1.11 (smartsieve doesn't work neither)

2003-01-17 Thread Ken Murchison


[EMAIL PROTECTED] wrote:
 
 You could take a look at SmartSieve, at:
 
http://smartsieve.sourceforge.net
 
 Its an active project, written in PHP, and works with Websieve scripts.
 
 Hi, thanks for the link, I just had a try at that project and same result,
 everything looks fine, the script gets created and activated but when
 sending test mails nothing happens... No idea why, there are also no error
 messages in my logs. Any ideas what I should check ?

Check the user's sieve directory (eg /usr/sieve/k/ken), and make sure
there is a link from 'default' to an actual script file.  You should see
something like:

lrwxrwxrwx1 cyrusmail   10 Nov 10  2001 default -
ken.script
-rw---1 cyrusmail 8877 Jan  8 16:19 ken.script


I've seen Websieve not do this correctly when starting from scratch.

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



Re: Websieve and Cyrus 2.1.11

2003-01-16 Thread marc . bigler


perl is telling you precisely what the problem is -- it is looking for
the file IMAP/Admin.pm (ie, the perl module IMAP::Admin), and it can't
find it in any of the directories listed.  If you installed it somewhere
else, you will need to get perl to look for it where you installed it.
 If you haven't installed the module, it won't work until you do.

ok right I just saw that my Admin.pm perl module is in
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/Cyrus/IMAP/Admin.pm so in the
file funclib.pl from Websieve I've changed the following line:

use IMAP::Admin;

to

use Cyrus::IMAP:Admin;

and I got further but now it's complaining that it cannot find
IMAP/Sieve.pm and I am 100% sure this file is NOT part of Cyrus IMAPD at
least not 2.1.11. Do you know where I can find it maybe ?

This Websieve thing really looks old :(

Regards










Re: Websieve and Cyrus 2.1.11

2003-01-16 Thread John Alton Tamplin
[EMAIL PROTECTED] wrote:


I am currently trying to make Websieve run with my Cyrus 2.1.11
installation. Unfortunately this doesn't work as well as planned, I copied
the files to my cgi-bin directory but now when I run

http://mailserver/cgi-bin/websieve.pl I get the following error:

Received a program error!
Error: Can't locate IMAP/Admin.pm in @INC (@INC contains:
/usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
/usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
/usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at ./funclib.pl line
5. BEGIN failed--compilation aborted at ./funclib.pl line 5. Compilation
failed in require at /opt/wmapache/cgi-bin/websieve.pl line 53. BEGIN
failed--compilation aborted at /opt/wmapache/cgi-bin/websieve.pl line 64.

Any ideas ? I also remarked that websieve is a bit old, I think more than 1
year old, do I maybe need to patch something to make it work ?

Or maybe do you have any alternatives for a web interface especially for
vacation (must be LDAP capable).
 

perl is telling you precisely what the problem is -- it is looking for 
the file IMAP/Admin.pm (ie, the perl module IMAP::Admin), and it can't 
find it in any of the directories listed.  If you installed it somewhere 
else, you will need to get perl to look for it where you installed it. 
If you haven't installed the module, it won't work until you do.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931





Re: Websieve and Cyrus 2.1.11

2003-01-16 Thread John Alton Tamplin
[EMAIL PROTECTED] wrote:


ok right I just saw that my Admin.pm perl module is in
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/Cyrus/IMAP/Admin.pm so in the
file funclib.pl from Websieve I've changed the following line:

use IMAP::Admin;

to

use Cyrus::IMAP:Admin;

and I got further but now it's complaining that it cannot find
IMAP/Sieve.pm and I am 100% sure this file is NOT part of Cyrus IMAPD at
least not 2.1.11. Do you know where I can find it maybe ?

This Websieve thing really looks old :(
 

If you want to use the Cyrus version of those modules, the name for that 
one is Cyrus::SIEVE::managesieve.  It looks like you are using 
funclib.pl rather than funclib.cyrus -- the readme.txt file explains 
that either you need to use funclib.cyrus and use the internal Cyrus 
modules, or you need to install IMAP::Admin and IMAP::Sieve.  The readme 
also tells you where to find those files if you don't want to use the 
Cyrus modules.

As far as really old, there are many programs on my system which haven't 
been updated as recently as a September 2001, which is the date on websieve.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931





Re: Websieve and Cyrus 2.1.11

2003-01-16 Thread marc . bigler

If you want to use the Cyrus version of those modules, the name for that
one is Cyrus::SIEVE::managesieve.  It looks like you are using
funclib.pl rather than funclib.cyrus -- the readme.txt file explains
that either you need to use funclib.cyrus and use the internal Cyrus
modules, or you need to install IMAP::Admin and IMAP::Sieve.  The readme
also tells you where to find those files if you don't want to use the
Cyrus modules.

Sorry bout that, I messed up my doc, I read it to quickly :) Now it works,
looks like I will need to patch it a bit to support virtual domains but
already brings up an interface, will go and test it now.

As far as really old, there are many programs on my system which haven't
been updated as recently as a September 2001, which is the date on
websieve.

Strange, strange world...

Regards