[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    Re: [SM-PLUGINS] avelsieve cannot delete script
From:       Chantal Rosmuller <chantal () site4u ! nl>
Date:       2009-02-10 9:21:38
Message-ID: 49914722.4060908 () site4u ! nl
[Download RAW message or body]

It works :)

Jan Hauke Rahm wrote:
> Hi,
> 
> please try this patch:
> 
> diff -urNad avelsieve~/table.php avelsieve/table.php
> --- avelsieve~/table.php    2008-12-17 22:18:01.000000000 +0100
> +++ avelsieve/table.php 2009-01-04 17:10:35.225379232 +0100
> @@ -162,6 +162,7 @@
> if (!$conservative) {
> $s->login();
> if(sizeof($rules) == 0) {
> +               $s->setactive('');
> $s->delete('phpscript');
> }  else {
> $newscript = makesieverule($rules);
> 
> I think it helps but please give me feedback.
> 
> Hauke
> 
> On Thu, Feb 05, 2009 at 10:10:54AM +0100, Chantal Rosmuller wrote:
> 
> > I tried this by adding and deleting a second rule and you're right, it 
> > only happens with the last one.
> > 
> > So know what :)? Is this a bug that will be resolved?
> > 
> > Laurent HENRY (EHESS/CRI) wrote:
> > 
> > > I am getting the same only when trying to delete the last rule of my
> > > .dovecot.sieve with the plugin (.dovecot.sieve -> sieve/phpscript.sieve)
> > > With several rules, deleting works well.
> > > 
> > > It seems like the plugin cannot rollback to an empty ruleset in the user's
> > > config.
> > > 
> > > Le Jeu 5 février 2009 09:45, Chantal Rosmuller a écrit :
> > > 
> > > 
> > > > Hi list,
> > > > 
> > > > I use squirrelmail 1.4.16 with dovecot and postfix. I installed the
> > > > avelsieve plugin and it works, except for one thing:
> > > > 
> > > > I cannot delete a script, I get the following error:
> > > > 
> > > > Could not delete script from server :.
> > > > Error Encountered: 255
> > > > 
> > > > This my pysieved.ini
> > > > 
> > > > 
> > > > [main]
> > > > auth    = Dovecot
> > > > userdb  = Dovecot
> > > > storage = Dovecot
> > > > port    = 2000
> > > > pidfile = /var/run/pysieved/pysieved.pid
> > > > [Virtual]
> > > > base = /var/mail/virtual/
> > > > uid = 150
> > > > gid = 8
> > > > hostdirs = True
> > > > [Dovecot]
> > > > mux = /var/run/pysieved/auth
> > > > master = /var/run/pysieved/auth-master
> > > > sievec = /usr/lib/dovecot/sievec
> > > > scripts = .pysieved
> > > > uid = 150
> > > > gid = 8
> > > > 
> > > > 
> > > > this dovecot.conf:
> > > > 
> > > > disable_plaintext_auth = no
> > > > base_dir = /var/run/dovecot/
> > > > protocols = imap pop3 imaps pop3s
> > > > ssl_disable = no
> > > > ssl_cert_file = /etc/ssl/certs/dovecot-cert.pem
> > > > ssl_key_file = /etc/ssl/private/dovecot.pem
> > > > login_dir = /var/run/dovecot-login
> > > > log_timestamp = "%Y-%m-%d %H:%M:%S "
> > > > mail_privileged_group = mail
> > > > default_mail_env = mbox:/var/vmail/%2d/%d/%n
> > > > first_valid_uid = 150
> > > > last_valid_uid = 150
> > > > maildir_copy_with_hardlinks = yes
> > > > log_path = /var/log/mail.log
> > > > protocol imap {
> > > > }
> > > > protocol pop3 {
> > > > pop3_uidl_format = %08Xu%08Xv
> > > > }
> > > > auth default {
> > > > passdb sql {
> > > > args = /etc/dovecot/dovecot-mysql.conf
> > > > }
> > > > userdb  sql {
> > > > args = /etc/dovecot/dovecot-mysql.conf
> > > > }
> > > > socket listen {
> > > > client {
> > > > # Assuming the default Postfix $queue_directory setting
> > > > path = /var/spool/postfix/private/auth
> > > > mode = 0660
> > > > # Assuming the default Postfix user and group
> > > > user = postfix
> > > > group = postfix
> > > > }
> > > > master {
> > > > path = /var/run/dovecot/auth-master
> > > > mode = 0600
> > > > user = vmail
> > > > }
> > > > }
> > > > }
> > > > auth_executable =  /usr/lib/dovecot/dovecot-auth
> > > > auth_verbose = yes
> > > > auth_debug = yes
> > > > # In case of password mismatches, log the passwords and used scheme so the
> > > > # problem can be debugged. Requires auth_debug=yes to be set.
> > > > auth_debug_passwords = yes
> > > > #lda settings
> > > > protocol lda {
> > > > # remember to give proper permissions for these files as well
> > > > log_path = /var/log/dovecot-deliver.log
> > > > info_log_path = /var/log/dovecot-deliver.log
> > > > auth_socket_path = /var/run/dovecot/auth-master
> > > > mail_plugins = cmusieve
> > > > global_script_path = /var/vmail/globalsieverc
> > > > }
> > > > #nieuw
> > > > auth pysieved {
> > > > mechanisms = plain
> > > > passdb sql {
> > > > args = /etc/dovecot/dovecot-mysql.conf
> > > > }
> > > > userdb sql {
> > > > args = /etc/dovecot/dovecot-mysql.conf
> > > > }
> > > > socket listen {
> > > > client {
> > > > path = /var/run/pysieved/auth
> > > > mode = 0660
> > > > user = vmail
> > > > group = mail
> > > > }
> > > > master {
> > > > path = /var/run/pysieved/auth-master
> > > > mode = 0660
> > > > user = vmail
> > > > group = mail
> > > > }
> > > > }
> > > > user = vmail
> > > > }
> > > > 
> > > > 
> > > > ------------------------------------------------------------------------------
> > > >  Create and Deploy Rich Internet Apps outside the browser with
> > > > Adobe(R)AIR(TM)
> > > > software. With Adobe AIR, Ajax developers can use existing skills and code
> > > > to
> > > > build responsive, highly engaging applications that combine the power of
> > > > local
> > > > resources and data with the reach of the web. Download the Adobe AIR SDK
> > > > and
> > > > Ajax docs to start building applications
> > > > today-http://p.sf.net/sfu/adobe-com
> > > > -----
> > > > squirrelmail-plugins mailing list
> > > > Posting guidelines: http://squirrelmail.org/postingguidelines
> > > > List address: squirrelmail-plugins@lists.sourceforge.net
> > > > List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
> > > > List info (subscribe/unsubscribe/change options):
> > > > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
> > > > 
> > > > 
> > > > 
> > > 
> > > ------------------------------------------------------------------------------
> > > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> > > software. With Adobe AIR, Ajax developers can use existing skills and code to
> > > build responsive, highly engaging applications that combine the power of local
> > > resources and data with the reach of the web. Download the Adobe AIR SDK and
> > > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> > > -----
> > > squirrelmail-plugins mailing list
> > > Posting guidelines: http://squirrelmail.org/postingguidelines
> > > List address: squirrelmail-plugins@lists.sourceforge.net
> > > List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
> > > List info (subscribe/unsubscribe/change options): \
> > > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins 
> > > 
> > > 
> > > 
> > ------------------------------------------------------------------------------
> > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> > software. With Adobe AIR, Ajax developers can use existing skills and code to
> > build responsive, highly engaging applications that combine the power of local
> > resources and data with the reach of the web. Download the Adobe AIR SDK and
> > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> > -----
> > squirrelmail-plugins mailing list
> > Posting guidelines: http://squirrelmail.org/postingguidelines
> > List address: squirrelmail-plugins@lists.sourceforge.net
> > List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
> > List info (subscribe/unsubscribe/change options): \
> > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins 
> > ------------------------------------------------------------------------
> > 
> > ------------------------------------------------------------------------------
> > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> > software. With Adobe AIR, Ajax developers can use existing skills and code to
> > build responsive, highly engaging applications that combine the power of local
> > resources and data with the reach of the web. Download the Adobe AIR SDK and
> > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> > ------------------------------------------------------------------------
> > 
> > -----
> > squirrelmail-plugins mailing list
> > Posting guidelines: http://squirrelmail.org/postingguidelines
> > List address: squirrelmail-plugins@lists.sourceforge.net
> > List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
> > List info (subscribe/unsubscribe/change options): \
> > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic