I wrote an script to archive mail items in the Zimbra Open Source Edition. The current status is "works for me". I tested in a lot, I have in production without any problem. Feedback is welcome.
[1]
Is part of my Tolbox:
[2]