[CalendarServer-changes] [10608] CalendarServer/branches/release/CalendarServer-4.3-dev/ calendarserver/tools/purge.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 31 12:55:10 PST 2013


Revision: 10608
          http://trac.calendarserver.org//changeset/10608
Author:   sagen at apple.com
Date:     2013-01-31 12:55:10 -0800 (Thu, 31 Jan 2013)
Log Message:
-----------
Purge tool should always delete inbox items, not modify them

Modified Paths:
--------------
    CalendarServer/branches/release/CalendarServer-4.3-dev/calendarserver/tools/purge.py

Modified: CalendarServer/branches/release/CalendarServer-4.3-dev/calendarserver/tools/purge.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-4.3-dev/calendarserver/tools/purge.py	2013-01-31 01:19:19 UTC (rev 10607)
+++ CalendarServer/branches/release/CalendarServer-4.3-dev/calendarserver/tools/purge.py	2013-01-31 20:55:10 UTC (rev 10608)
@@ -819,7 +819,8 @@
                         for childName in childNames:
 
                             childResource = (yield collection.getChild(childName))
-                            if self.completely:
+                            # Always delete inbox items
+                            if self.completely or collName == "inbox":
                                 action = self.CANCELEVENT_SHOULD_DELETE
                             else:
                                 event = (yield childResource.iCalendar())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130131/a329c23d/attachment.html>


More information about the calendarserver-changes mailing list