When using OS X Mail on Leopard with IMAP, it is possible to get Mail.app into a bad state with respect to the server. When this happens, Mail will start displaying an extremely-hard-to-dismiss dialog that resembles:
Mail has undone actions on some messages so that you can redo the actions while online.
Additional information: The IMAP command “UID COPY” (to Deleted Items) failed for the mailbox “Junk E-mail” with server error: Command Error. 10.
For the benefit of the entire Internets, here is the solution.
-
Close Mail.app.
-
Open a terminal and cd ~/Library/Mail/.
-
In this directory is a subdirectory that is called something like
IMAP-youremail@yourmailserver
. (Or if you’re living dangerously and/or stupidly like me,Exchange-youremail@yourmailserver
). cd into this directory. -
cd .OfflineCache/ and rm everything in this directory.
You’re welcome!
I’m having this problem and I followed all the step when I go into the mail server directory, it returned the following:
usage: rm [-f | -i] [-dPRrvW] file …
unlink file
But it didn’t work. Any thoughts?
Thanks!
I’m Anonymous from above. Even though the Terminal method above did not work for me, I found a way to do the exact same thing. Used Finder’s Go To Folder to open the Offline Folder and deleted all the files manually.
Finder > Go > Go To Folder > ~username/Library/Mail/IMAP-youremail@yourmailserver/.OfflineCache
Thanks!
Sorry about that, Denise — my instructions were for people who like working in Terminal, so I was lazy and didn’t include the full *rm* command. But yes, your method of manually deleting files via the Finder will do the trick too. Nice work! 🙂