:: micsaund.com ::

Mike’s World of fun stuff (pinball, games, electronics, amusement parks, computers, more)

August 3, 2008

Tip: Leopard Mail.app won’t quit with IMAP

by @ 12:26 pm. Filed under Apple

Apple Logo
I recently setup several IMAP accounts in Leopard's Mail.app and noticed that when I tried to quit Mail, it would "hang". This seems to be a common problem and I found a fix which may work for you too.

The problem is puzzling and annoying. You try to File->Quit in Leopard's Mail application and it just sits there. If you wait long enough, it might quit on its own, but typically, you must do a Force Quit.

I tracked the issue down to something to do with IMAP accounts. When I had Mail configured for only POP access, it would quit on-demand any time. However, as soon as I added just one IMAP account, Mail again refused to exit cleanly. Clearly, there's something wrong with Apple's IMAP implementation in Leopard and they aren't exactly jumping to fix it.

Anyway, I found a "fix" that worked for me. I now have six IMAP accounts setup in Mail and when I try to quit, it exits within a second or two, cleanly. This may or may not work for you, and make sure you have a backup just in case -- although this shouldn't cause any problems, you know the standard "do this at your own risk" disclaimer applies.

1) Exit Mail and make sure it has fully quit (use Force Quit if required).
2) Run these commands from a Terminal:


sqlite3 ~/Library/Mail/Envelope\ Index vacuum;
sqlite3 ~/Library/Mail/Envelope\ Index vacuum index;
sqlite3 ~/Library/Mail/Envelope\ Index vacuum subjects;

You can just cut and paste the lines exactly as-is.

3) Open Mail, wait for any of the initial inbox checking to complete, and test quitting.

I suspect that if you have lots of mail stored on the server that it will still take a few seconds to shut everything down, but in my case with very little existing mail, Mail now closes in about 1-2 seconds.

Hopefully Apple will release an update at some point in the near future, but there are reports of this happening all the way from Leopard 10.5.1 through the 10.5.4 that I'm running.

Please post below if this helps you so everyone can gain from the experience.

stumbleupon:Tip: Leopard Mail.app won't quit with IMAP del.icio.us:Tip: Leopard Mail.app won't quit with IMAP digg:Tip: Leopard Mail.app won't quit with IMAP spurl:Tip: Leopard Mail.app won't quit with IMAP wists:Tip: Leopard Mail.app won't quit with IMAP simpy:Tip: Leopard Mail.app won't quit with IMAP newsvine:Tip: Leopard Mail.app won't quit with IMAP blinklist:Tip: Leopard Mail.app won't quit with IMAP furl:Tip: Leopard Mail.app won't quit with IMAP reddit:Tip: Leopard Mail.app won't quit with IMAP fark:Tip: Leopard Mail.app won't quit with IMAP blogmarks:Tip: Leopard Mail.app won't quit with IMAP Y!:Tip: Leopard Mail.app won't quit with IMAP smarking:Tip: Leopard Mail.app won't quit with IMAP magnolia:Tip: Leopard Mail.app won't quit with IMAP segnalo:Tip: Leopard Mail.app won't quit with IMAP gifttagging:Tip: Leopard Mail.app won't quit with IMAP

Related Stuff:

Stop Safari from opening PDFs inside the browser
[caption id="attachment_863" align="alignnone" width="250" caption="The Apple Safari logo"][/caption] It's been a while since I posted, but today, I had to figure-out...

Mail-in rebate scams
I just got one of the the most worthless "your rebate has been rejected" postcards that I've ever seen. ...

Web server that fits into your pocket
An extremely small, full function embedded network server. Olimex has created a fully functional TCP/IP embedded server which they claim is...

Personal computer robotic platform
Perhaps the ultimate casemod or is it something much more interesting? I don't know how many people will remember the old...

Phidgets: Easy to use USB circuit goodies
If you've ever wanted to be able to add easy USB interfacing to your electronic circuits, the Phidgets USB modules...

Explore more

Previous post: Build your own FPGA based Amiga 500 clone

Next post: Review of the PDO Flipp case for iPhone 3G

11 Responses to “Tip: Leopard Mail.app won’t quit with IMAP”

  1. User links about "imap" on iLinkShare Says:

    [...] | user-saved public links | iLinkShare 1 votesTip: Leopard Mail.app won’t quit with IMAP>> saved by ltbeyer 0 days [...]

  2. Marc Says:

    How can this be undone? This initially worked for me, but now mail can’t check my account.

  3. micsaund Says:

    Marc: there is nothing to undo – those commands are simply built-in database commands that optimize and clean the tables. You should check for other problems with your mail provider, network, or other settings as that’s your most likely cause of problems. For a bit more about the sqlite3 vacuum command check this out.

  4. John Stephens Says:

    Thanks for this tip– it worked exactly as described. I have to say I’m underwhelmed switching from Tiger’s Mail.app to Leopard’s. I’ve had nothing but problems since about a week after I initially set it up. Hanging on Quit seems to be resolved now, thanks to these database commands.

    Thank you again!

  5. micsaund Says:

    Thanks for the feedback, John. I’m glad I was able to help!

  6. tiger Says:

    yow! worked for me too. *thank you*.

  7. micsaund Says:

    Thanks for the feedback, Tiger.

    It’s good to know that this is still being found by people and helping them out!

  8. Lenny G. Says:

    Do you do all your own writing? Or do you outsource some of it? I’m looking for some similar content for my blog! These are great posts!

  9. 布帮强 Says:

    You have no idea how many headaches you have saved me. Your tip combined with watching the activity indicator has made using mail convenient again.

  10. Frank Says:

    Worked like a charm! Thanks!

  11. Andy Says:

    I used your tip, even though I have Mail.app under Snow Leopard, and it worked like a charm. Thanks for the great information!

Leave a Reply

[powered by WordPress.]

micsaund.com

arcade games:

categories:

search blog:

syndication:

other links:

Twitter Stuff: