Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Archive > Archives of Old Posts > MacBytes.com News Discussion

 
 
Thread Tools Search this Thread Display Modes
Old Mar 1, 2007, 08:28 AM   #1
MacBytes
macrumors bot
 
Join Date: Jul 2003
A faster way to speed up Mail.app




Category: Tips and How To's
Link: A faster way to speed up Mail.app
Description:: As everyone knows, it is possible to get quite a speed boost out of Mail.app by stripping all the bloat out of its Envelope index, an SQLite database Mail uses to store senders, recipients, subjects and so on. In the past, I suggested that quitting Mail, deleting the Envelope file and restarting Mail would force a rebuild that produces a leaner, faster email experience. In October last year Dallas noticed a faster way to get the same result using three Terminal commands.

Posted on MacBytes.com
Approved by Mudbug
MacBytes is offline   0
Old Mar 1, 2007, 08:29 AM   #2
Mudbug
macrumors god
 
Mudbug's Avatar
 
Join Date: Jun 2002
Location: North Central Colorado
Send a message via AIM to Mudbug Send a message via Skype™ to Mudbug
I just did this myself, and to say there's a speed difference may be the understatement of the decade. Mail.app is easily twice the speed it was before running this.
__________________
I think I understand what you're talking about, but where are we going to find a duck and a rubber hose at this time of night?
Mudbug is offline   0
Old Mar 1, 2007, 08:31 AM   #3
MacBoobsPro
macrumors 603
 
MacBoobsPro's Avatar
 
Join Date: Jan 2006
Send a message via AIM to MacBoobsPro
What is it deleting exactly?

What are the consequences?
MacBoobsPro is offline   0
Old Mar 1, 2007, 08:32 AM   #4
mkrishnan
Demi-God (Moderator emeritus)
 
mkrishnan's Avatar
 
Join Date: Jan 2004
Location: Grand Rapids, MI, USA
This doesn't interrupt threading of subjects or anything, does it? I have to try this when I get home!
__________________
Mohan
mkrishnan is offline   0
Old Mar 1, 2007, 08:33 AM   #5
MacBoobsPro
macrumors 603
 
MacBoobsPro's Avatar
 
Join Date: Jan 2006
Send a message via AIM to MacBoobsPro
Quote:
Originally Posted by mkrishnan View Post
This doesn't interrupt threading of subjects or anything, does it? I have to try this when I get home!
My plan exactly but I need to know what it is actually doing incase something goes wrong.
MacBoobsPro is offline   0
Old Mar 1, 2007, 09:14 AM   #6
dr_lha
macrumors 68000
 
Join Date: Oct 2003
Quote:
Originally Posted by MacboobsPro View Post
What is it deleting exactly?
Its not deleting anything, its optimizing the database

Quote:
What are the consequences?
Faster Mail.app
__________________
Me: 1Ghz 12" PB and Mac mini Intel Core Solo 1.5Ghz, The Wife: 1.86Ghz CD MacBook, Me@Work: 2.66Ghz Mac Pro and a 2.33Ghz C2D 15" Mac Book Pro
dr_lha is offline   0
Old Mar 1, 2007, 09:15 AM   #7
redwin11
macrumors member
 
Join Date: Feb 2006
Location: UK
Impressive!
The sluggishness has disappeared, and even opening 5-10Mb attachments is quite nippy.
redwin11 is offline   0
Old Mar 1, 2007, 09:20 AM   #8
MacBoobsPro
macrumors 603
 
MacBoobsPro's Avatar
 
Join Date: Jan 2006
Send a message via AIM to MacBoobsPro
Freakin Nora. It works great. Much faster!

Sweet!
MacBoobsPro is offline   0
Old Mar 1, 2007, 09:23 AM   #9
Jonnyfive
macrumors regular
 
Join Date: Feb 2007
Location: British Columbia
I got an error in terminal when trying to enter the last line... am I doing something wrong?

sqlite> sqlite> vacuum subjects;
SQL error: near "sqlite": syntax error

Last edited by Jonnyfive; Mar 1, 2007 at 09:31 AM.
Jonnyfive is offline   0
Old Mar 1, 2007, 09:31 AM   #10
redwin11
macrumors member
 
Join Date: Feb 2006
Location: UK
Quote:
Originally Posted by Jonnyfive View Post
I got an error in terminal when trying to enter the last line... am I doing something wrong?
Yes
redwin11 is offline   0
Old Mar 1, 2007, 09:35 AM   #11
Jonnyfive
macrumors regular
 
Join Date: Feb 2007
Location: British Columbia
Quote:
Originally Posted by redwin11 View Post
Yes
Well what am I doing wrong?
Jonnyfive is offline   0
Old Mar 1, 2007, 09:36 AM   #12
wrldwzrd89
macrumors Demi-God
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Hmm... I'll have to try this once I return to my Mac. My Mail.app hasn't been particularly sluggish.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0
Old Mar 1, 2007, 09:44 AM   #13
iMeowbot
macrumors 601
 
iMeowbot's Avatar
 
Join Date: Aug 2003
Quote:
Originally Posted by Jonnyfive View Post
Well what am I doing wrong?
You don't want to type the sqlite> part, that's the command prompt for the program.
iMeowbot is offline   0
Old Mar 1, 2007, 09:45 AM   #14
redwin11
macrumors member
 
Join Date: Feb 2006
Location: UK
Quote:
Originally Posted by Jonnyfive View Post
Well what am I doing wrong?
Copy and paste it, ensures there's no errors for a start.
redwin11 is offline   0
Old Mar 1, 2007, 09:47 AM   #15
Jonnyfive
macrumors regular
 
Join Date: Feb 2007
Location: British Columbia
Quote:
Originally Posted by iMeowbot View Post
You don't want to type the sqlite> part, that's the command prompt for the program.
Quote:
Originally Posted by redwin11 View Post
Copy and paste it, ensures there's no errors for a start.
Well, I guess that means copy and paste wouldn't work... Smart Guy.
Jonnyfive is offline   0
Old Mar 1, 2007, 09:49 AM   #16
wrldwzrd89
macrumors Demi-God
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Quote:
Originally Posted by Jonnyfive View Post
Well, I guess that means copy and paste wouldn't work... Smart Guy.
It does work, you just have to make sure you don't accidentally copy the prompt. Also, don't try to copy both lines at once, as it won't work.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0
Old Mar 1, 2007, 09:51 AM   #17
Jonnyfive
macrumors regular
 
Join Date: Feb 2007
Location: British Columbia
Quote:
Originally Posted by wrldwzrd89 View Post
It does work, you just have to make sure you don't accidentally copy the prompt. Also, don't try to copy both lines at once, as it won't work.
Yeah I got it to work. Just saying that copying and pasting everything written on the page isn't the solution.
Jonnyfive is offline   0
Old Mar 1, 2007, 09:53 AM   #18
redwin11
macrumors member
 
Join Date: Feb 2006
Location: UK
Quote:
Originally Posted by Jonnyfive View Post
Well, I guess that means copy and paste wouldn't work... Smart Guy.
You're the one who's struggling with three lines of text!
redwin11 is offline   0
Old Mar 1, 2007, 09:55 AM   #19
Jonnyfive
macrumors regular
 
Join Date: Feb 2007
Location: British Columbia
Quote:
Originally Posted by redwin11 View Post
You're the one who's struggling with three lines of text!
Touche.
Jonnyfive is offline   0
Old Mar 1, 2007, 09:59 AM   #20
MacBoobsPro
macrumors 603
 
MacBoobsPro's Avatar
 
Join Date: Jan 2006
Send a message via AIM to MacBoobsPro
I copied and pasted all 3 lines and it seems to have worked for me?

So for people who are struggling can someone post a step by step? We are here to help people right? Maybe I didnt do it right but it seems faster to me.
MacBoobsPro is offline   0
Old Mar 1, 2007, 10:32 AM   #21
mainstreetmark
macrumors 68020
 
mainstreetmark's Avatar
 
Join Date: May 2003
Location: Saint Augustine, FL
Quote:
Originally Posted by MacboobsPro View Post
I copied and pasted all 3 lines and it seems to have worked for me?

So for people who are struggling can someone post a step by step? We are here to help people right? Maybe I didnt do it right but it seems faster to me.
Really?!?

Step 1: Quit mail
Step 2: Open Terminal (use Spotlight to find 'Terminal')
Step 3: Copy this bit and paste it in the terminal directly:
Quote:
cd ~/Library/Mail
sqlite3 Envelope\ Index
vacuum subjects;
... and press return.
Step 4: When it says "sqlite>" again, close Terminal
Step 5: Open Mail

If you still have trouble, it's time to reconsider your ability to own a computer.

Mine sped up significantly!
__________________
iTunesRegistry.com <--don't bother, it's dead.
mainstreetmark is offline   0
Old Mar 1, 2007, 10:35 AM   #22
devilot
Demi-Goddess (Moderator emeritus)
 
devilot's Avatar
 
Join Date: May 2005
Quote:
Originally Posted by mainstreetmark View Post
Really?!?
Thanks, it's appreciated, I'm sure by others too timid to now reply.

Anyway, definitely speeds things up. Can't wait to get home and try this out on my iMac. That fool needs the speed up more than my MB.
__________________
Noodles.
devilot is offline   0
Old Mar 1, 2007, 10:43 AM   #23
mainstreetmark
macrumors 68020
 
mainstreetmark's Avatar
 
Join Date: May 2003
Location: Saint Augustine, FL
I'll do you all one better. Here's a quick app to do it for you:

A buddy of mine pointed out that you can use iCal, set a monthly alarm, and for the alarm action, use 'Run Script' and point to this file, and set it to go off every month. Neat, eh?
Attached Files
File Type: zip speedup_mail.sh.zip (475 Bytes, 56 views)
__________________
iTunesRegistry.com <--don't bother, it's dead.

Last edited by mainstreetmark; Mar 1, 2007 at 11:06 AM. Reason: the iCal thing
mainstreetmark is offline   0
Old Mar 1, 2007, 10:49 AM   #24
IJ Reilly
macrumors G5
 
IJ Reilly's Avatar
 
Join Date: Jul 2002
Location: Palookaville
I just tried the easy way, deleting the Envelope file. After about five minutes of rebuilding, it had been reduced from 10 Mb to about 8 Mb. Speed improvements? Negligible, at best. Maybe mine wasn't large enough to make much difference, but I am unimpressed.
__________________
*The season starts too early and finishes too late and there are too many games in between.
Bill Veeck
IJ Reilly is offline   0
Old Mar 1, 2007, 10:51 AM   #25
mainstreetmark
macrumors 68020
 
mainstreetmark's Avatar
 
Join Date: May 2003
Location: Saint Augustine, FL
Mine went from 11 to 5. It used to be I could see the inbox populating up with messages. Would take seconds sometimes. Now, when Mail stars, my inbox just appears with no delay.
__________________
iTunesRegistry.com <--don't bother, it's dead.
mainstreetmark is offline   0

 
MacRumors Forums > Archive > Archives of Old Posts > MacBytes.com News Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Way faster way to load your Messages.app (Jailbreak Req'd) WeatherGuy iPhone 10 Aug 8, 2009 05:49 PM
What's the best way to speed up aperture? awad Mac Pro 12 Jan 19, 2008 05:41 AM
52 Ways to Speed Up OS X MacBytes MacBytes.com News Discussion 16 May 16, 2007 08:36 PM
Tip: Speed up Mail.app mrzeve Mac Applications and Mac App Store 2 Mar 1, 2007 09:29 PM


All times are GMT -5. The time now is 12:13 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC