[Kolab-devel] purging events in resource calendars

Andreas Gungl a.gungl at gmx.de
Sat Nov 17 09:23:05 CET 2007


Am Donnerstag, 15. November 2007 schrieb Bernhard Reiter:
> Well it is a useful script. If you are willing to publish it under a Free
> Software license - by all means, you should do it. :)

Here we go. Find attached the ruby script and a very short README.
It's not perfect yet and I have some ideas at hand about how to improve it. So 
feedback is welcome, perhaps I will publish an improved version soon.

Andreas
-- 
Kindermode Online - Fashion for Kids
http://www.theofeel.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: event-cleaner.rb
Type: application/x-ruby
Size: 9410 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20071117/f1b2b2e0/attachment.bin>
-------------- next part --------------
To show the events which would be purged, call the script like this:

ruby -Ku event-cleaner.rb -s <server> -u <user> -p <secret> -m INBOX/Calendar -k 180 2>clean.log

You get a quick overview on stdout, more detailed information is
on stderr which can be piped into a log file.
Use the -d option to really delete the outdated eevents.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.kolab.org/pipermail/devel/attachments/20071117/f1b2b2e0/attachment.sig>


More information about the devel mailing list