An error occurred while moving messages to mailbox “(null)”.

When I delete a message, I get the following error: "An error occurred while moving messages to mailbox “(null)”." What's more, the message does delete, but it doesn't end up in the trash, or anywhere for that matter - it's lost forever. Anybody know a fix?

MacBook Pro (15-inch Early 2011), OS X Yosemite (10.10)

Posted on Oct 17, 2014 3:54 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 25, 2014 3:54 PM

I found a way to fix this. I assume you're using an IMAP account. If so, you should be able to expand the mail account and see the folders that exist on the server. Find the one you want to use for Trash, select it, then go to the "Mailbox" menu and find "Use This Mailbox As..." and select "Trash Mailbox". You can do the same for sent messages, junk, etc. Once I did this, the message stopped appearing.

34 replies
Question marked as Top-ranking reply

Nov 25, 2014 3:54 PM in response to Tommytune72

I found a way to fix this. I assume you're using an IMAP account. If so, you should be able to expand the mail account and see the folders that exist on the server. Find the one you want to use for Trash, select it, then go to the "Mailbox" menu and find "Use This Mailbox As..." and select "Trash Mailbox". You can do the same for sent messages, junk, etc. Once I did this, the message stopped appearing.

Jan 4, 2015 6:50 PM in response to Tommytune72

Hi,


I was trying to set up an email account with Mail using my hostgator email account to use IMAP. I've just recently upgraded to Yosemite. Like the other poster above, "Use This Mailbox A..." worked for me, and I wanted to reiterate that here for future generations to unearth via google...


I have seen a TON of messageboard questions to this error... "An error occurred while moving messages to mailbox “(null)”." This happened for trash, junk, and draft saving of emails.


I could see the various folders underneath my mapped email account main folder, but they weren't showing up in my mail's groupings. Except, when they'd try, they'd show up with a big grey dot beside them an an arrow down.


So, I saw some help files on rebuilding my mailbox from here: Mailbox>Rebuild.


I tried that and it wouldn't work. But, then, I noticed this setting just above it... Mailbox>Use This Mailbox As...


That's the trick. Just pick your IMAP junk folder, and pick "junk". Pick your IMAP's deleted folder, and pick "trash".


Boom boom boom, and the error message disappears and everything is "live" on my IMAP account. 😀


Worked like a charm!


Jon

Oct 20, 2014 12:45 PM in response to Tommytune72

Hi Tommytune72,


If you are having an issue with moving emails to the Trash, I would suggest rebuilding the affected mailboxes, in this case both the source (where the message was when you tried to delete it) and the Trash. Rebuild mailboxes by following the steps in this article -


Mail (Mavericks): Rebuild mailboxes


Note that while the article title says Mavericks, the same steps apply to Yosemite.


Thanks for using Apple Support Communities.


Best,


Brett L

May 19, 2015 12:29 PM in response to Brett L

This seems to be the resolution of the problem - worked for me too.


I found a way to fix this. I assume you're using an IMAP account. If so, you should be able to expand the mail account and see the folders that exist on the server. Find the one you want to use for Trash, select it, then go to the "Mailbox" menu and find "Use This Mailbox As..." and select "Trash Mailbox". You can do the same for sent messages, junk, etc. Once I did this, the message stopped appearing.

Sep 8, 2016 7:36 AM in response to Tommytune72

I know this is an aged thread, but today I encountered the same issue, and I wanted to share the new fix for this bug. What works for me is opening Mail/Preferences/Accounts, and at the bottom in the "Trash" section, deselect "Move deleted messages to the Trash mailbox". Immediately beneath that, the "Store deleted messages on the server" will become greyed out, but still selected. My deleted emails now go to the server.


as of El Capitan version 10.11.6...

Dec 23, 2015 1:01 AM in response to Tommytune72

Have seen this error from time to time and tried the different solutions suggested here. Then looked around and found a trash folder 'On this Mac' which shouldn't be there, as all accounts I use are IMAP, and I want trash to go to folders of each of the accounts e.g. Gmail.

I could see that some of the emails that refused to be 'deleted' (moved to trash) was in this general 'On this Mac' folder.

I deleted the 'On this Mac' folder and it seems to work. Btw. I found similar extra local folders for spam and send mail too.

I'll be back if this solution doesn't work.

Nov 25, 2014 8:24 PM in response to tbiske

Thanks for the reply. That was suggested in another forum on the same theme, but did not work for me.


HOWEVER, since the last update to OS X, I have not noticed the problem. After the update my Trash folders all seem to have returned to normal, looking like trash cans, and deleting messages in my inbox doesn't bring up the same error message. I'll let you know if anything changes, but so far so good.

Apr 1, 2016 6:42 AM in response to Tommytune72

I've set up Mail on my Mac (OS X) iPad and iPhone. No problems with my Gmail account. And no problems with iOS.

Last time I set up an IMAP account, say mail.npsonder.com I had this problem with my Archive folder. Also in Mail (on Mac) all folders were found under Inbox instead of the normal way in the left panel under e.g. Npsonder.

To resolve the problem I 'just' had to enter the right names of the IMAP account instead of the generic mail.npsonder.com that worked properly for most actions. The actual name was like mail14.ispname.com, and everything works right now.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

An error occurred while moving messages to mailbox “(null)”.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.