Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've got a client who has experienced this intermittent symptom, and I'm looking for the cause:

Using Mail.app with GMail (enterprise edition), he presents Mail.app to me when it has an indeterminate progress indicator (spinning circle) next to the 'Sent' box. During this time, he can compose new messages and ask mail.app to send them, but they never leave his machine. I use Window > Connection Doctor > Show Detail to see IMAP commands and data flying by, but I can only see a few lines at a time, and have no way to scroll back to decipher what's going on.

The connection from Mail.app to GMail is encrypted, so I didn't think a packet capture would do what I wanted.

Is there a logging option that I can enable?

As an aside, I can clear this issue by deleting the (hidden) directory at ~/Library/Mail/IMAP-user@gmail.com/.OfflineCache/

share|improve this question

1 Answer 1

You can try:

/Applications/Mail.app/Contents/MacOS/Mail -LogSocketErrors YES -LogActivityOnHost your.mail.server -LogActivityOnPort 143 &>~/Desktop/ConnectionLog.txt

or if you have 10.5 or later

/Applications/Mail.app/Contents/MacOS/Mail -LogActivitiyOnHost your.mail.server -LogMaximumBytes 200 -LogIMAPErrors YES &>•/Desktop/ConnectionLog.txt

and in another terminal window

tail -f ~/Desktop/ConnectionLog.txt

Apple Developer Mail Documentation

I also find that sometimes Little Snitch can be helpful for these things

share|improve this answer

Your Answer


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.