[CalendarServer-changes] [10609] CalendarServer/trunk/calendarserver/tools/purge.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 31 13:00:43 PST 2013


Revision: 10609
          http://trac.calendarserver.org//changeset/10609
Author:   sagen at apple.com
Date:     2013-01-31 13:00:43 -0800 (Thu, 31 Jan 2013)
Log Message:
-----------
Purge tool should always delete inbox items

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/purge.py

Modified: CalendarServer/trunk/calendarserver/tools/purge.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/purge.py	2013-01-31 20:55:10 UTC (rev 10608)
+++ CalendarServer/trunk/calendarserver/tools/purge.py	2013-01-31 21:00:43 UTC (rev 10609)
@@ -851,7 +851,8 @@
                         for childName in childNames:
 
                             childResource = (yield collection.getChild(childName))
-                            if self.completely:
+                            # Allways 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/851e7909/attachment.html>


More information about the calendarserver-changes mailing list