<div id='error'>
		<p class='wpdberror'><strong>WordPress database error:</strong> [Table &#039;llscotts_mars.wp2_categories&#039; doesn&#039;t exist]<br />
		<code>SELECT cat_ID FROM wp2_categories WHERE category_nicename = &#039;vacuummail&#039;</code></p>
		</div><?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Musings from Mars &#187; VacuumMail</title>
	<atom:link href="http://www.musingsfrommars.org/topic/vacuummail/feed" rel="self" type="application/rss+xml" />
	<link>http://www.musingsfrommars.org</link>
	<description>I've been observing personal computing behavior for a long time, and now I have some things to say. Here are my two cents about computing, music, software, and related topics.</description>
	<pubDate>Tue, 25 Jun 2024 16:28:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apple Mail Slowing Down?  VacuumMail Can Probably Help</title>
		<link>http://www.musingsfrommars.org/2007/04/vacuummail-will-speed-up-apple-mail.html</link>
		<comments>http://www.musingsfrommars.org/2007/04/vacuummail-will-speed-up-apple-mail.html#comments</comments>
		<pubDate>Thu, 19 Apr 2007 01:30:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apple Software]]></category>

		<category><![CDATA[Mars Software]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[VacuumMail]]></category>

		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.musingsfrommars.org/2007/03/vacuummail-will-speed-up-apple-mail.html</guid>
		<description><![CDATA[<div style="display: block; width: 355px; background-color: #F4F5EB; padding: 10px; margin-right: 10px; margin-bottom: 10px; border-width: 3px 1px 1px; border-style: solid dotted; border-color: rgb(160,160,160); font-size:90%; line-height: 1.2em; float: left;clear:both;"><em>Originally published 3/9/07, updated 3/26/07:</em><br />VacuumMail now comes with a full installer package, which puts VacuumMail in your Utilities folder, the Launch Agent in your Library (makes the LaunchAgents folder if you don't have one yet), and also optionally includes Peter Borg's handy Lingon software for customizing your Launch Agent. No other changes are made to VacuumMail itself at this time. I've updated the link, though, to point to the new installer download.</div><img src="http://www.musingsfrommars.org/images/vacuum_icon_w.png" height="178" width="128" border="0"  alt="VacuumMail Icon" title="VacuumMail Icon" style="display:block;float:right;margin-left:10px;margin-bottom:10px;" /><p>A lively discussion and exchange of information occurred recently on <a href="http://www.hawkwings.net/" target="_blank">Hawk Wings</a>, the blog site mostly devoted to news and resources for users of Apple's terrific Mail program. A colleague at work sent me a message on Tuesday, excited  when word on Hawk Wings started circulating about a "vacuum" process available for SQLite databases that appeared to dramatically speed up Apple Mail. He had tried the recommended vacuuming and definitely noticed peppier Mail performance. One thing led to another, and before I knew it, I'd become engrossed in developing and polishing up an AppleScript utility to automate a periodic vacuuming of my Mail, which I'm of course dubbing VacuumMail.</p>

As the  <a href="http://www.hawkwings.net/2007/03/01/a-faster-way-to-speed-up-mailapp/">Hawk Wings discussion</a> unfolded, we learned that Mail maintains an SQLite database called "Envelope Index" in your ~/Library/Mail folder, which gradually grows as the number of emails in your mailbox does. Natively, Mail performs no optimizations on this critical database, which contains pointers to all of your mail that become fragmented and somewhat disorganized over time. At the office, my Envelope Index file was over 100mb, and at home it's about 30mb. SQLite offers a "vacuum" <img src="http://www.musingsfrommars.org/images/hawkwings_header.jpg" height="62" width="208" border="0"  alt="Hawk Wings Blog Header" title="Hawk Wings Blog Header" style="float:right;margin-left:10px;margin-top:6px;" />command that rewrites the Envelope Index, optimizing and reorganizing it for faster access. It sounds a bit like what happens when Mac OS X defragments your hard drive periodically.

<img src="http://www.musingsfrommars.org/images/sqlite_icon.jpg" height="45" width="150" border="0"  alt="SQLite Icon" title="SQLite Icon" style="float:left;margin-right:8px;" />At first, news of this function took the form of a shell command you can run in Terminal. It was quite interesting and exciting to see how the Mac users reading of this learned more about it as information was shared, and the command itself became more concise and precise as the day went on. Other users discovered that SQLite offers an "autovacuum" process that can do vacuuming without prompting, and I'm sure that's a great thing as well. However, we also learned that vacuuming is a more robust and thorough optimizing of the file, since it actually analyzes and rewrites the whole thing, whereas autovacuuming acts only on a certain recent portion of mail pointers. The basic Terminal command turns out to be:

<pre>sqlite3 ~/Library/Mail/Envelope Index vacuum;</pre>]]></description>
		<wfw:commentRss>http://www.musingsfrommars.org/2007/04/vacuummail-will-speed-up-apple-mail.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
