• Explore the magic and the mystery!



  • The Case of the Multiple Email Inboxes

    February 16th, 2009

    So a few weeks ago, I moved our online content to a new server, one with dual quad-core processors, 16GB RAM and a lot more bandwidth. One big change I made was to stop funneling messages through a third-party service and move everything in-house, so to speak, so we had full control.

    Since all our email is uses the IMAP protocol, I simply had to move the messages from the old accounts to the new ones, after creating new accounts with the updated incoming and outgoing server information. It’s not an instantaneous process, but simple to do.

    However, I have accumulated some 40,000 messages over the past decade. I’m not sure why I keep some of the older ones around, but nonetheless it took several hours for the task to complete.

    Now some commercial email services can do this IMAP to IMAP transfer in the background, but I opted for the manual method rather than explore an automated alternative. I felt that just doing it was quicker than seeking out other solutions, but feel free to tell me your experiences in our Comments section.

    In any case, things seemed to be working fine after the initial process of downloading the messages from our own server had finished. That is except for one thing, and therein lies a tale.

    You see, suddenly my Inbox for tw0 of my email accounts began to spawn multiple Inboxes, in what appeared to be subfolders. It didn’t happen in the remaining accounts, for reasons I do not pretend to understand. However, I dutifully deleted the extraneous folders, only to find them returning whenever I relaunched Apple Mail.

    So I began to search for solutions, and indeed there were several, but as you will learn shortly, not all proved successful and one was downright boneheaded.

    First, it appeared there are two things in common for all or most of these cases. First, is that folks suffering from this anomalous email behavior are using a Leopard version of Mail. Second, the email server is using an open source application known as Courier IMAP.

    Now if you have a Linux-based Web host that provides either cPanel or Parallels Plesk to manage your sites, you’ll find that Courier is part of the standard installation. So I rather suspect many of you might be vulnerable to this problem.

    So let me tell the steps I followed to arrive at a solution.

    In theory, when you delete an IMAP folder in Mail, it will delete the one on your mail server when the next connection is established. That happens every time Mail requests new messages, although you can use the Synchronize All Accounts function, in the Mail’s Mailbox menu, whenever you want to hasten the process.

    Unfortunately, the problem wasn’t resolved. Next time Mail launched, the folders had returned, phoenix-like, in all their irritating glory.

    My next step in resolving this dilemma was to login to our server, and attempt to manage the task remotely. I won’t detail the process here, as the location of your email fodlers will differ depending on which control panel your host is using, and, in the end, you may not even have access unless you have a VPS or dedicated server contract with them.

    In any case, I deleted the extraneous folders on the server, but they returned as soon as Mail was launched from any of my Macs. Not good.

    One wrong turn recommended by a certain well-known Mac troubleshooting site, in an article taking advice cribbed from Apple’s support forums, was to change the IMAP path prefix. This is a setting in Mail’s Advanced preference pane, under Accounts, that determines whether the extra folders in your account appear as subfolders in your Inbox or separately. If you have several email accounts in regular use, I suggest the latter.

    If a path prefix is required, as it would be with a Courier IMAP setup, the path prefix would be created automatically by Mail when you set up the account. Removing it did nothing but turn my extra folders into subfolders under the Inbox. It didn’t eliminate the problem, and I didn’t expect it to. So I changed the setup back to its normal configuration, which, as I said, uses INBOX.

    Now without belaboring the point, another suggestion calls for editing Mail’s preference file, the one in your Users / Library / Preferences folder, via Apple’s Property List Editor, which comes with the Apple Developer’s installation, or a third-party preference editor. It seems that a partly-corrupted preference file is supposed to be a major cause of this problem. But the solution seems a little extreme and, frankly, I felt I’d rather try other remedies first, and that leaves two.

    The first is simply to trash the preference file, which removes all your accounts, other than the one for MobileMe, which is part of your default setting (assuming you are a member of MobileMe of course). That’s a fairly quick solution, particularly if you have only one or two accounts to recreate. Remember, too, that you don’t lose any of your messages, because you’re using IMAP. They’re stored on the server, not your Mac. Remember?

    My solution was a little less draconian. I just deleted and recreated the actual accounts that were affected by this phenomenon after, of course, removing the errant folders. That proved to be the ideal solution — at least for me. Indeed, launching and relaunching Mail on my desktop and note-book Macs did not create any new problems.

    So the case of the extra Inboxes was solved, at least for me. I suppose, in the scheme of things, it’s a minor problem and probably most who encounter it won’t care one way or the other if there’s an extra folder around. But that’s not me.



    Share
    | Print This Post Print This Post

    7 Responses to “The Case of the Multiple Email Inboxes”

    1. gopher says:

      Strange, my webhost uses cpanel, but then again I haven’t upgraded beyond 10.5.5.
      Any possibility this is a bug introduced with 10.5.6?

    2. gopher wrote:

      Strange, my webhost uses cpanel, but then again I haven’t upgraded beyond 10.5.5.
      Any possibility this is a bug introduced with 10.5.6?

      It apparently existed in 10.5.5 too. Also, it may not happen to everyone. It requires using IMAP, and, apparently, the Courier IMAP mail server. The latest versions of cPanel, those released since last fall, also provide the option of using the Dovecot mail server instead of Courier IMAP. While I haven’t had luck with Dovecot (it crashes my server), it’s quite possible it may not be susceptible to this particular symptom.

      Peace,
      Gene

    3. Dave says:

      I got rid of the Inbox problem the same way you did Gene. But now I have a problem with mail creating a mailbox called Apple Mail To Do. Actually, I don’t know if it gets created on the IMAP server first, or in Mail. I can delete it and it will not come back until I start Mail again. I’m running 10.5.6, although the problem didn’t start immediately after upgrading. I’ve read about the problem in several places online and nobody seems to have an answer. Grrrr….

    4. Dave wrote:

      I got rid of the Inbox problem the same way you did Gene. But now I have a problem with mail creating a mailbox called Apple Mail To Do. Actually, I don’t know if it gets created on the IMAP server first, or in Mail. I can delete it and it will not come back until I start Mail again. I’m running 10.5.6, although the problem didn’t start immediately after upgrading. I’ve read about the problem in several places online and nobody seems to have an answer. Grrrr….

      Check the way To Dos and such are configured in Mail’s preferences.

      Peace,
      Gene

    5. Dave says:

      Gene Steinberg wrote:

      Check the way To Dos and such are configured in Mail’s preferences.

      Peace,
      Gene

      I’ve looked at Mail preferences and I don’t see anything about To Dos.

    6. Dave wrote:

      Gene Steinberg wrote:

      Check the way To Dos and such are configured in Mail’s preferences.

      Peace,
      Gene

      I’ve looked at Mail preferences and I don’t see anything about To Dos.

      Under Composing. 🙂

      Peace,
      Gene

    7. Dave says:

      Gene Steinberg wrote:

      Dave wrote:

      Gene Steinberg wrote:

      Check the way To Dos and such are configured in Mail’s preferences.

      Peace,
      Gene

      I’ve looked at Mail preferences and I don’t see anything about To Dos.

      Under Composing.

      Peace,
      Gene

      Ooops, missed that one!
      I changed the setting from “account of last viewed mailbox” to “on my mac”. I’ll see if that makes a difference.
      What I’d really like is to be able to disable To Dos altogether. I think it’s dumb having them in Mail.

      Update: it took Mail about 10 minutes to recreate the Apple Mail To Do mailbox.

    Leave Your Comment