In Leopard, when you go offline while using Apple’s Mail program with an IMAP account, you may get the following error message, or something similar:
“Some actions taken while the account “xxxxxxx†was offline could not be completed online.
Mail has undone actions on some messages so that you can redo the actions while online. Mail has saved other messages in mailbox “Apple Mail To Do†in “On My Mac†so that you can complete the actions while online.
Additional information: The IMAP command “APPEND†(to Apple Mail To Do) failed with server error: Invalid mailbox name..â€
And if you click OK enough times, the program crashes.
There are two ways to correct this problem (both ways will preserve your mail settings (you will NOT have to reconfigure your Mail program) and your mail will appear in a few seconds after first opening the Mail program after performing the fix below):
1st Way (easier way)
1. Make sure your Mail program is closed
2. Open Macintosh HD (double-click on it)
3. Select your Home folder (it will be on left nav bar with the picture of a house)
4. On the right side of the window, double-click on the “Library” folder (to open the folder)
5. Double-click on the “Mail” folder
6. Remove (move to the trash) the “IMAP-youremailaddress@here.com” folder
7. Close everything and open Mail to confirm it has been fixed
2nd Way
Delete all entries in~/Library/Mail/IMAP-email_address@mailserver/.OfflineCache . The folder is actually only accessible in shell since its a hidden directory, so you will need to access it via Terminal. This is for advanced users only, so I won’t bother writing a step-by-step instruction, as those users will know how to do it.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.







January 4, 2008 at 10:02 am
Thanks loads! I was pulling my hair out over this and your 2nd way was the only thing that worked for me. I almost switched back to Entourage over this…
January 27, 2008 at 3:08 pm
Thanks a lot, exactly what I needed!
January 27, 2008 at 7:54 pm
Great. Glad to help.
February 7, 2008 at 2:02 pm
Thank you!
February 8, 2008 at 9:15 am
I deleted the folder but still had the issue. It turned out there were a few mails in my Draft folder that had attachments over a GB. (I copied the file names from the Finder and thought I was only pasting the names. When in fact, I was attaching the whole QT. I corrected it in the email immediately but the damage had been done in my Drafts folder.) So before I quit Mail, I had to go offline and delete all the offending drafts. After that, I followed the directions above and I’m back on track.
Thanks for the info.
February 10, 2008 at 4:42 am
Please award yourself at least four attaboys! It is just so good when you find someone who a: Understands the problem and b: Provides a solution that even I can understand. Thank you.
February 13, 2008 at 9:55 pm
Just a note. You can access hidden directories by using “Go To Folder” under the Finders go menu. In this case, you’d navigate to ~/Library/Mail/IMAP-email_address@mailserver/ then choose go to folder & type the rest, “.OfflineCache”.
March 8, 2008 at 12:06 pm
Thank you so much. I’d been struggling with this problem for over a month, and could find no mention of the problem on Apple’s site.
BTW you should know that googling: “mail has undone actions on some messages so that you can redo the actions while online” leads directly to you.
April 13, 2008 at 3:41 pm
Thank you so much. I can’t believe I actually managed to fix the problem! You instructions were superbly clear. Thank you for writing in normal words instead of geek!
May 12, 2008 at 3:55 pm
THANK YOU SO MUCH.
It worked for me:-)
May 14, 2008 at 2:53 pm
I’ll add my thanks to the chorus: Thanks! This was great, I got this bizarre error suddenly today, and Google led me right to you. It’s much appreciated.
June 5, 2008 at 6:32 pm
Thanks for publishing this. It helped a lot.
June 28, 2008 at 8:19 am
Thank you, thank you, thank you !!!!
I spend 2 days searching the net and there was no help except from you !!!
You made my day
June 29, 2008 at 12:56 pm
Great fix!! Thank you Ian-you have down a great service.
July 16, 2008 at 10:17 pm
THANKS, THANKS, THANKS!!! I had the same error but not with gmail… wit my own server, I tried everything! but finally this helped. I don’t believe that the people of apple haven’t fixed this, and now that we are in Mac OS X 10.5.4!
July 17, 2008 at 11:22 pm
thanks been stuck on that for ages, you legend you, very easy even for me!
July 31, 2008 at 4:47 am
What a great EASY fix….
Thanks to Matt as well for the idea of using the finder instead of terminal.
Saved me hours possibly days more of frustration with mail!
Thanks again
August 11, 2008 at 6:59 pm
Holy cow. I love you. Your fix worked for me as well. Thank you so much for donating your time to free help for us all!! *headache goes away*
August 12, 2008 at 12:18 pm
I have a compounding problem. I have three IMAP accounts, one from an old domain pointing to another newer domain. However, I have FOUR of the IMAP folders in the library>mail> IMAP … folders.
Two are clearly the suspects. They are:
1. old-domain-email@old domain @ mail.newdomain
2. newdomain-email@newdomain@mail.olddomain
I am not certain which to delete, and wonder if I can delete both of them with no ill effects? Can you tell me exactly what the file folder name should look like?
Compounding this is that my timemachine is not operating properly (thank you, time capsule) so I feel especially vulnerable if all my mail were to be affected.
August 13, 2008 at 12:29 pm
Hello Jean,
Sorry to hear you’re having such problems. Just delete both of them. The IMAP folders that it needs will be rebuilt automatically when you start Mail again.
The great thing about having it set up via IMAP is that you will not lose any email. All of your email is still on your mail servers. You are just viewing it via the Mail program.
Also, with regard to your Time Capsule issue, I’m not sure what issues you’re having, but sometimes when you reboot the Time Capsule, you have to connect to it again, as it gets disconnected.
To do this, simply open a finder window (click on Finder in the bottom left of your screen), select your Time Capsule (which should be listed on the left side of the finder window), click the CONNECT AS button in the upper right corner of the finder window, and then enter your Time Capsule’s password to connect to it again.
After that, you can just go up to the Time Machine menu in the top right section of your screen, to the left of the clock, and select “Backup Now.”
If that does not work, go up to that menu again, go to the Time Machine preferences, click “Change Disk,” and then select your Time Capsule again. Then close that, go up to the Time Machine menu again, and select “Backup Now.”
Hope that helps!
August 13, 2008 at 1:56 pm
Thank you. I ended up going in to the genius bar today since I could not work, and so they solved it before I tried your method. Your explanation, however, is so clear and concise.
As for the timecapsule, when I do reconnect on it and click to see contents, it shows sparsebundles for each of the four machines that should be backing up, including mine and my server, but they don’t open for me. I cannot see them in the desktop/time machine format. AND, my sparsebundle has 105 GB of apparent backups in it. Will I lose those by just doing the “change disk” maneuver, and configuring again?
I also cannot see my SERVER timecapsule backups from any of the machines including the server keyboard. What simple thing am I completely missing here?
So, just to say it another way, two of my laptops are time machining for their local files, but have no access to the server time machine backups. the third laptop has lost its configuration, can however see the sparsebundles for all four but cannot connect to its backup nor the server’s.
And, again, thank you!
August 16, 2008 at 8:17 pm
Hi. Sorry for the delay. First, you can not just open the sparsebundles manually. You can only view each backup from its respective computer by clicking on Time Machine in the Dock or in the Applications folder of that computer.
Secondly, when you connected to the Time Capsule again, did you try just backing up right after you reconnected instead of changing the disk?