Thanks Ken, But should it be "squatter -r user" or full path "/usr/lib/cyrus/bin/squatter -r user"?
Regards, Leon Kolchinsky -----Original Message----- From: Ken Murchison [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 4:29 PM To: לאון קולצ'ינסקי Cc: info-cyrus@lists.andrew.cmu.edu Subject: Re: SQUATTER script and non English folders [EMAIL PROTECTED] wrote: > OK, Thanks > > Could you tell me please how to run SQUATTER as an EVENT from cyrus.conf? > How the configuration should look like? Add something like the following to the EVENTS section of cyrus.conf: squat cmd="squatter -r user" at=0300 This will run the given command at 3am every day. > > -----Original Message----- > From: Ken Murchison [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 27, 2005 4:07 PM > To: לאון קולצ'ינסקי > Cc: info-cyrus@lists.andrew.cmu.edu > Subject: Re: SQUATTER script and non English folders > > [EMAIL PROTECTED] wrote: >> Hello All, >> >> I have 2 questions: >> >> 1) I'm running the following script as a cronjob every night: >> #!/bin/bash >> su - cyrus -c "/usr/lib/cyrus/bin/squatter -r user/*" > > Why not run this from cyrus.conf as an EVENT? There is no good reason that I > can think of to not keep all Cyrus related stuff in cyrus.conf. > > >> But, it creates cyrus.squat file only in subfolders of the users >> INBOX, i.e. /var/spool/imap/user/username/ doesn't include >> cyrus.squat but /var/spool/imap/user/username/Drafts/ does include >> cyrus.squat after running the above script. >> >> What's wrong with my syntax? > > I believe David's assessment is correct. > -- Kenneth Murchison Systems Programmer Carnegie Mellon University ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html