Dec 30

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.

Related posts:

  1. How to rename a project in iMovie ’09 I know this may be a simple task, but this...
  2. How to take a screenshot of your iPhone screen without an app With the iPhone OS 2.0 and up, you can easily...

Related posts brought to you by Yet Another Related Posts Plugin.

written by Ian Brown

2 Pings to “Mail has undone actions on some messages – Apple’s Mail Program”

  1. links for 2009-05-22 | Wyefronts Says:

    [...] Mail has undone actions on some messages – Apple’s Mail Program | ianbrown.cc Apple mail error fix (tags: apple mail error) [...]

  2. 100 Slaves 100 Enemies» Blog Archive » Apple Mail Tech Support Says:

    [...] #1 from this post seems to have solved the [...]


67 Responses to “Mail has undone actions on some messages – Apple’s Mail Program”

  1. 1. Mark Malson Says:

    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…

  2. 2. brendan Says:

    Thanks a lot, exactly what I needed!

  3. 3. Ian Brown Says:

    Great. Glad to help.

  4. 4. ray Says:

    Thank you!

  5. 5. Jack Says:

    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.

  6. 6. Peter Aitkens Says:

    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.

  7. 7. Matt Says:

    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”.

  8. 8. Mark Says:

    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.

  9. 9. Barbara Says:

    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!

  10. 10. Simon Says:

    THANK YOU SO MUCH.
    It worked for me:-)

  11. 11. David McMillen Says:

    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.

  12. 12. Aaron Says:

    Thanks for publishing this. It helped a lot.

  13. 13. richo Says:

    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 :-)

  14. 14. Bill Carozza Says:

    Great fix!! Thank you Ian-you have down a great service.

  15. 15. Thomas Says:

    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!

  16. 16. kevin Says:

    thanks been stuck on that for ages, you legend you, very easy even for me!

  17. 17. Kishi Says:

    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

  18. 18. Chad Perkins Says:

    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*

  19. 19. Jeanne Muir Says:

    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.

  20. 20. Ian Brown Says:

    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!

  21. 21. Jeanne Muir Says:

    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!

  22. 22. Ian Brown Says:

    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?

  23. 23. David Henderson Says:

    Thank you SOOO much.

    Some you understands the problem and gives clear instructions on how to fix it!

    I’ll be taking a note of your website.

  24. 24. Frustrated No More Says:

    I found your .OfflineCache ip on another site and had to come here and thank you for it. I really didn’t want to just delete my whole folder (it seemed stupid and like using a sledgehammer instead of a tweezer. anyway – thank you.

  25. 25. Audrey Says:

    I think it worked!! Thank you, thank you! My mail was on the gerbil wheel of that stupid error message followed by a billion “drafts.” Ugh!!

  26. 26. Ian Brown Says:

    LOL. Glad I could help you, Frustrated No More. Sledgehammer vs. a tweezer. Funny.

    Great, Audrey! My pleasure. ;)

  27. 27. Kay Says:

    I tried doing the first way and its still not working. I’m using a .mac email account. for some reason I’m not seeing the IMAP-youremailaddress@here.com to delete…and it feels like my computer is moving 1000 times slower because of this…is it something im not seeing?

  28. 28. Stefanie Says:

    Thanks Ian!! Saved the day and made me look like I’m brilliant to my co-workers – thanks a bunch.

  29. 29. D Says:

    I am having the same issue as Kay…no option for the IMAP-youremailaddress@here.com to delete. Please help.

  30. 30. Matthew Says:

    Thanks. This was a lifesaver!

  31. 31. shawn giese Says:

    thanks, helped me too.

  32. 32. Ashley M Says:

    Thanks that helped alot. btw can u help me with this other problem?…
    I have a mac, with leopard installed. And i use MSN all the time. And when i’m chatting online i can’t seem to chat message after message. What happens is the IM box thing greys out everytime i enter a message to my friend. So i ALWAYS have to click on it again n again EVERYTIME i enter a new message to the same person i’m talking to. its REALLY annoying. Didn’t used to happen, just started happening last week. ALSO at the same time my Hotmails been f*cking about too. The site works fine and it gets me into my Inbox fine, but then apart from that nothing works. No other links work. Junk, Reply, Delete…nothing works. And i can’t get into my emails or that eithers. So do u know wots going on? I tried contacting Microsoft but havent got replied to :(

  33. 33. plgx Says:

    I had found a fix just before reading yours (rm-ing the .OfflineCache/ folder). It worked in the sense that I was able to receive mail again. However, my drafts folder still has the file (five times) that caused the original problem, and not even with your fix have I managed to delete them. Any ideas?

  34. 34. ryu Says:

    Yes, second method worked for me. Thanks much.

  35. 35. plgx Says:

    The problem is I don’t seem to have the .OfflineCache directory anymore (since I deleted it with rm -r, and now it doesn’t appear anymore when I do an ls -a inside the ~/Library/Mail/IMAP-email_address@mailserver/ directory). Thanks a lot for your help.

  36. 36. Sam Harding Says:

    Good post. As always you give a refreshing view on the subject, I always make a point of checking this blog and your feed.

  37. 37. Heiko Behrens Says:

    thanks a lot! You are my rescue!

  38. 38. Richard Shephard Says:

    Oh well done you. Have a cookie. Thanks a million for your first method, which worked straight away.

  39. 39. Tanja Jewell Says:

    A big giant THANK YOU!!

  40. 40. jon Says:

    You’re the man! thx alot.

  41. 41. Gavin Wye Says:

    Thanks Ian .

  42. 42. joe nguyen Says:

    It would be nice to see more of this.

  43. 43. Santiago Lema Says:

    Thanks *a lot* for this. I got this issue after transfering loads of e-mail from my previous account using pop to IMAP on gmail and your second solution solved it in a matter of seconds.

  44. 44. Chadhurbhujaya Says:

    I usually don?t post in Blogs but your blog forced me to, amazing work.. beautiful ?

  45. 45. alexandra Says:

    to be honest i still don’t know what the problem was or what your solution fixed but I, like everyone else, googled “Some actions taken while the account “Gmail 2” was offline could not be completed online.” and found you. It is fixed, I GOT MAIL so a huge THANKS Ian.

    I do have a small question re pop and imap – let me know if you don’t mind answering and I will see if I am able to put into words what I would like to understand – thanks again

  46. 46. Anthea Says:

    THANK YOU! Very clear and saved my laptop from being hurled out the window…!

  47. 47. Ian Brown Says:

    Sorry for the delay, Alexandra. Been busy with other projects. Let me know what your question is. Just in case I can save time, the main difference between POP and IMAP is that with POP, you are actually downloading the email to your computer, whereas with IMAP, you are simply VIEWING the email on your mail server via your email software program.

    So, with POP, if you have it set to delete your email on the mail server (where your email first goes when it is sent to you) after you retrieve it, then if something happens to your computer, you lose your email.

    However, you can set your email client (software program) to either leave a copy on the server or leave a copy on on the server for so many days. That way if something happens, you still have your email (but NOT your sent mail), or at least you have it for a certain amount of time if you opt to have it delete your email after a certain amount of days.

    With IMAP, you are VIEWING your email on your mail server (where your email is stored on the Internet). When you download and read it (usually you have to click “get entire message” to be able to read the whole email or to be able to open any attachments, because it only downloads the first 20k worth of data), it is still on the mail server safe and sound. The only way it will no longer be on the server is if you delete it.

    Hope that helps, but if it doesn’t, what’s your question?

  48. 48. Rob in Devon Says:

    Wonderful. Thanks for posting

  49. 49. Joy Says:

    Thank you so much. I thought I was going to the looney house it was driving me crazy.

  50. 50. Commission Blueprint Scam Says:

    It’s so hard to find good information these days, I have read a few of your posts and I am very impressed with your site. Thanks

  51. 51. HFM Says:

    Thank you. You fixed an enormous headache for me.

  52. 52. Rose Says:

    Thank you very, very much, Ian! Deleting the OfflineCache folder worked like a charm.

  53. 53. Aloysius Says:

    Merry Christmas to me! It’s a tribute to my geekdom that I should be mucking about the internet on Christmas evening but that #*%& message came up one too many times and I found your solution online and in less time than it takes to unwrap a present my 6 month old problem has vanished with the Spirit of Christmas Past. It’s A Wonderful Life! God Bless us every one… and you especially Tiny Ian.

  54. 54. Adam M. Erickson Says:

    It worked so painlessly.

    FYI: it worked for OSX 10.5.8, nothing to worry about it took me longer to post this thank you.

    Thank you.

  55. 55. Aloysius Says:

    Slight problem: email boxes existed in the trashed folder that don’t exist in the reconstructed folder. I know there’s mail in them because I can see it and open it from the Finder. But reinstalling those folders into the newly created location doesn’t cause them to appear in Mail. I’ve tried “On My Mac” as well as their original email boxes and nothing brings ‘em back. Ideas?

  56. 56. Ian Brown Says:

    Thank you all for your kind comments. I really appreciate it. It’s always nice to hear how one’s work has helped better other people’s lives.

    Aloysius, LOL, very funny Xmas comment. Sorry, but I am short on time, as I am heading out for CES (Consumer Electronic Show) in Vegas right now (I’ll be posting on this blog live from CES, btw, so stay tuned!)

    Try posting your question on these two forums:

    http://macosx.com/forums/
    http://forums.macosxhints.com/

    They are very good over there and quick to respond. Good luck!

  57. 57. matt nathanson music fan Says:

    Hey, I just wanted to drop a note and say nice post!

  58. 58. Iven from Canada Says:

    In my case, just restarting my macbook worked. Try that too.

  59. 59. Ian Brown Says:

    Thanks for the tip, Iven!

  60. 60. Kevin Stancombe Says:

    Many thanks for this particular insightful post. Every now and then, the best wisdom come from the places one wouldn’t expect. Until now, I failed to give a whole lot of thought to commenting on blog entries and have left feedback even less. Viewing your powerful post, will help me to take action again.

  61. 61. Ara Pehlivanian Says:

    You just saved my butt! Thanks man.

  62. 62. timber flooring installation sydney Says:

    This is the most interesting web site I have seen on this matter. Lots to talk about. I’m going to show my friends. It will absolutely start a completely new area to talk about.

  63. 63. Enjay Says:

    2nd way for me, worked perfectly. Boom.

  64. 64. zofia Says:

    #2 worked for me, thx!!

  65. 65. Ian Brown Says:

    Great to hear! Glad this post is helping all of you!

  66. 66. how to use adsense Says:

    Please, can you PM me and tell me few more things about this, I really like blogs like yours…

  67. 67. appilstore Says:

    GR8 Mate, Wish we had people like you in germany too, this is valuable content!

Leave a Reply