imapsync and mail filters I'm attempting to migrate a sizable number of users to Zimbra and have a problem.
Immediately after creating the acocunt in Zimbra, two filters are created to automatically tag certain mail messages based on a header. This works just fine for mail which comes in through the MTA.
In using imapsync to migrate mail, these server side filters are not being run. Since imapsync does a transfer from port 143 to port 143, I'm guessing the filtering occurs closer to the MTA. This is a bit of a problem.
We could create a script to use SOAP to pull down every message of the user, request the full content (because these headers are not in the abbreviated headers), regex for the header, and tag the messasge. But based on the volume of mail this could take days or even weeks to process all of the mail. Not to mention the fact that it will be a pain to build the script in the first place, just to dispose of it later.
Is there a better way to apply these filters while imapsync is migrating mail? Is there something we could do within imapsync (like add a zimbra specific header or modifiy the imapsync perl code itself) that might trigger a specific tag? Is there any magic, like doing the 're-index' or some zm... command that will reapply the server side filters on the existing messages? Any help here is greatly appreciated.
Last edited by Coilcore : 08-07-2006 at 01:31 PM.
|