Hello, this is my first forum post so sorry if I missed something when searching the forums, wiki, and bugzilla to find a resolution to my situation -- though I do see quite a bit posted that's in relation to this in one way or another.
We recently migrated from IMail to Zimbra Open Source using the IMAPSync utility version 2.2.9. We've been running fine for over a week but have just noticed an issue related to the migration. We had to run IMAPSync on multiple occasions with the parameters to remove mail from the Zimbra system that was no longer on the IMail system (--delete2 --expunge2). It appears those messages that were supposed to be removed were just tagged with \deleted because we're finding many accounts show a message count in the web interface that is over what actually appears in the folder.
I tried reindexing & recalculating mailbox counts but that did not matter since the messages are hidden with the \deleted tag.
I also tried setting the purge for these accounts to 1 hour and ensuring the wait time between purges was set (it is, to default 1 min), but that also did not remove the messages in order to display the correct message count.
The empty trash option from the web interface is grayed out so that is also not an option because no mail is actually in that folder.
I read on this post that compacting the mailbox using Thunderbird for their IMAP users worked, however our users are POP users, the only IMAP involvement was with the IMAPSync tool. Not to mention there are at least a 1000 accounts and it is unknown at this time how many are affected so the option of setting up a user account in Thunderbird to do this task is beyond undesirable.
How can I go about clearing those \deleted messages that were a result of multiple runs of IMAPSync? I can't rerun IMAPSync because we're in production now and the former IMail server has already been decommissioned, and I don't know that it'd make a difference considering I already used the parameters that were supposed to expunge these messages in the first place. This is causing a problem for some of our users because the \deleted messages are counting against their overall quota. Is there a command I can run to expunge messages for all accounts tagged with \deleted?