Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question
    
Did you check if you have any Rules enabled ? –  Buscar 웃 Jun 28 '13 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 Jun 28 '13 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 Jun 29 '13 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 Jun 30 '13 at 15:13
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.