Apple Mail stuck on "Preparing to Move Messages"?

I deleted my imap account on my powerbook and then added it again. Apple Mail then downloaded about 4000 msgs and everything is back to normal.