:: 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:

Mail-in rebate scams
I just got one of the the most worthless "your rebate has been rejected" postcards that I've ever seen. Something needs to be done about these crooks. I don't think that anyone reading this site is going to be ignorant about the current, legalized scam known as mail-in-rebates, so I'll skip the part about how they expect a certain percentage of people to forget, blah blah blah. I'm not one of those people who forgets. I also do not screw-up the rebates. I am meticulous about filling-out the forms and I copy everything, even the stamped envelope I send the...

Thunderbird 1.5 e-mail client released
Well, after a long time in development, the Mozilla project's Thunderbird 1.5 has been released. It's incredibly hard to find a good e-mail client. I read something at one time (perhaps from the mutt authors) that "all e-mail clients suck, ours just sucks less." That's very true IMO and it's even harder to find one that's decent and free (I do like mutt for text mail BTW ;) ). Thunderbird aims to solve both issues. I've been using the 1.5 beta for some time now and found it pretty good. It's not significantly changed from earlier versions, at...

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 the world's smallest PIC-based TCP/IP server. Using the board's included network stack and ethernet port, you can use the board to serve web pages, retrieve FTP data, send e-mail or anything else that is port based. The possibilities for something like this are immense. A few ideas come to mind. You can use the on-board microcontroller to collect temperature or other data and upload it to a server. You could build an alarm that will e-mail or...

New Apple products announced
Sadly, there is no Mac Mini with built-in DVR funtionality, but the new Mini based on the Intel chips is now available. Also announced were some no-so-interesting iPod accessories. With my Tivo (Series 1) yearly subscription about to renew, I was hoping that Apple would grace us with an Intel-based Mini with built-in video capture, thus allowing DVR functionality when combined with FrontRow and the Apple remote. Alas, what was announced is just a plain ole' Mac Mini, except now it's based on the Intel Core (single core or dual, your choice) and does include FrontRow and a remote. Why...

Build your own classic computer
These kits will let you build a replica Apple 1, ELF2K, and micro-Kim and re-live the glory days when computers weren't just something you bought off a shelf. If you're nostalgic about very early era computers or perhaps you just want to learn a bit about basic computer architecture, these kits will be for you! There are a few kits available, the most reconizable being the original Apple 1. I have to admit that I'm not at all familiar with the other two, the Kim-1 (Micro Kim) and Cosmac ELF (ELF 2k) since I was just a bit too young...

Explore more

Previous post: Build your own FPGA based Amiga 500 clone

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

4 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!

Leave a Reply

[powered by WordPress.]

micsaund.com

arcade games:

categories:

search blog:

syndication:

other links:

37 queries. 0.624 seconds