X-Junk-Score: 0 [] X-Cloudmark-Score: 0 [] Return-Path: Received: from moscow.stalker.com ([89.175.185.228] verified) by mail.stalker.com (CommuniGate Pro SMTP 5.3.9) with ESMTP id 61668853 for CGatePro@mail.stalker.com; Wed, 01 Sep 2010 08:16:17 -0700 Received: from [91.77.33.250] (account support@mail.moscow.stalker.com HELO [192.168.0.6]) by mail.moscow.stalker.com (CommuniGate Pro SMTP 5.3.9) with ESMTPSA id 24999537 for CGatePro@mail.stalker.com; Wed, 01 Sep 2010 19:16:17 +0400 Message-ID: <4C7E6E80.10707@stalker.com> Date: Wed, 01 Sep 2010 19:17:20 +0400 From: Technical Support Organization: Stalker Labs User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: CommuniGate Pro Discussions Subject: Re: Expunging Calendar References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, Tom Rymes wrote: > Somewhat of an odd question here, but does anyone have a good way to > expunge a calendar of old items? We have shared calendars here that have > 2,000-5,000 entries in them, and I periodically expunge the old entries > to help performance, especially with the initial load of a calendar for > a new profile in MAPI. > > Anyhow, I have often done this by viewing the folder as a folder and > then sorting by "received". You can then presumably delete the oldest > entries, but this invariably ends up in having some recurring items > deleted, because they were created a long time ago, but are still relevant. > > Any ideas as to how best I might accomplish this? To remove only the relevant items (not recurring) you need to parse the calendar items. The simplest parsing is to grep for RRULE attribute in the iCalendar data - that sets up recurrence rule. This even works when you filter a Calendar folder on messages that contain RRULE in Thunderbird or WebUser. > Tom -- Best regards, Dmitry Akindinov ======================================================================= When answering to letters sent to you by the tech.support staff, make sure the original message you have received is included into your reply.