My mail.app uses IMAP to fetch email from GMail. I use the standard settings given by the configuration wizard in OSX Mountain Lion.

The problem I am facing is that mail.app removes all incoming emails from the inbox. I can only find the emails in the folder All Mail. This happens in mail.app and in GMail (accessed through webmail), as well. The problem must be caused by mail.app, because it resolves when I removed my the GMail account from mail.app.

Is there a way to debug this problem? Any way I can see what instructions mail.app is sending to GMail through IMAP?

  • Did you check if you have any Rules enabled ?
    – Ruskes
    Commented Jun 28, 2013 at 7:27
  • Yes no rules enabled. By the way this problem started only a few days ago. Before the same setup was working soundly.
    – user52245
    Commented Jun 28, 2013 at 7:32
  • Did you change any settings (on either Gmail or Mail.app), install any new programs, or do anything else unusual a few days ago before the problem started? Have you recently updated to 10.8.4?
    – Bruce
    Commented Jun 29, 2013 at 2:17
  • Also - ping me if the debug logs aren't helpful. We can decide to open a new question to go over the logs or perhaps figure out a minor issue in comments here or below.
    – bmike
    Commented Jun 30, 2013 at 15:13

1 Answer 1


Debugging Mail.app on OS X is fairly easy - especially in the case you describe where the problem is with one account.

  • Get the Incoming Mail server name from preferences (Mail --> Preferences... --> Accounts --> (your account) --> Incoming Mail Server) - it's likely something like mail.gmail.com or imap.gmail.com
  • Quit Mail
  • Open terminal and type this all as one long line (it's split here for readability):

    /Applications/Mail.app/Contents/MacOS/Mail -LogActivityOnHost imap.gmail.com -LogIMAPErrors YES >& ~/Desktop/MailConnection.log &

The harder part becomes making sense of the volume of data being logged, but again it seems you have a good handle on the scope of the issue. I would take a gander at your IMAP and label settings in gmail preferences to be sure your account isn't suppressing those folders for IMAP delivery.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .