Imap-tools from UW-IMAP appears to have some handy tools, one such tool
being able to move folders from one IMAP server to another and creating
the new folders as it goes. I would like to use these tools but at the
moment I have to get around the hurdle of building them. They require
the current version of IMAP-2000 source to already be compiled then you
add these tools into the source tree of IMAP-2000 and then build.
I can't get IMAP-2000 to build on my OpenBSD 2.7 system.
I have managed to build this creature on debian/ia32 (make slx), and have tried
to use the imapxfer tool for imap to imap transfer. The tool is quite buggy and
needs a considerable amount of hacking before doing anything useful. For
example, transfer between servers with different hierachy delimiter (uw-
imap/courier-imap) is doomed to fail. Also, it doesn't detect already copied
messages, and doesn't propagate folder subscriptions properly.
Despite it's flaws, imap to imap transfer is what I prefer, so I am in the
process of hacking this poorly programmed piece of software to fit my needs. If
someone is interested I can post a patch when done.
That is, if I don't decide to drop it and instead hack another faulty tool
called isync, which is more in line with what I want to do (i for imap, sync
for sync :). The time will tell...