March 26, 2008 by jerome
Since a few days I had quite some troubles to get my emails right… they were were all mixed up: when clicking on an email of Damien for some quick modifications on a project we did recently, I was accessing an email, from my mother, which I received just after. Not a really practical situation to read and answer emails.
My first fear was a corruption on the IMAP server, but Mail.app on other computers were syncing email header, title and email content correctly so it was not a server side issue. There was definitely a corruption in the SQLite file on my local Mail.app and I was wondering about radical best practice to get things back to normal, like un-installing/cleaning/installing the mail folders. I’ve read a few articles about how to flush the SQLite database.
Mail.app extensively use SQLite to store emails, it is a C library that implements a self-contained, embeddable, zero-configuration SQL database engine, it is driven toward fast performance and embed-ability in local application.
Finally, thinking there was a simpler solution (because there is always a simpler solution) I stumbled upon the Rebuild item inside the Mailbox menu. If it is greyed, it might be because you did not select a Mailbox first. Upon selection, Rebuild will re-fetch the emails headers, and re do the caching - this can take some time before it’s completed.

And Shazam!
All emails are back with their correct header/title/content …
Tags: email, header, issue, mail, osx, repair | Comments (0)
March 18, 2008 by jerome
A few weeks ago, both Marc Liyanage and John Gruber explored the Applescript Reference to a Uri for emails from Mail.app.
http://www.entropy.ch/blog/Mac+OS+X/2007/12/04/Copy-Message-URLs-AppleScript-for-Apple-Mail.html
http://daringfireball.net/2007/12/message_urls_leopard_mail
It could be really nice to be able to have the message:// protocol registered in Terminal or iTerm, so that command+double-click on the url/uri would do just the same as on a http:// link: open it. I used their scripts in combination with Act-On which let’s me now press a command $ then U to copy the Uri of the selected email to the clipboard (Basically: Act-On replace the clicks on the Applescript menu from Applemail by shortcuts). It would be nice to be able to log directly in todo.txt the email Uri fr later retrieval/processing.
todo.txt: http://todotxt.com/
act-on: http://www.indev.ca/MailActOn.html
Tags: applescript, filesystem, osx, protocol, uri | Comments (0)
March 17, 2008 by jerome
VI
Use Terminal’s vi as default text editor http://www.macosxhints.com/article.php?story=20080305012955463
DTerm
DTerm offers a command line anywhere and everywhere http://www.decimus.net/dterm.php
SIMBL
Smart InputManager Bundle Loader Problem: Some applications do about 90% of what I want. Solution: Develop my own applications. Better Solution: Patch the application myself…
http://www.culater.net/software/SIMBL/SIMBL.php
Visor
Visor provides a systemwide terminal window accessible via a hotkey, much like the consoles found in games such as Quake.
http://code.google.com/p/blacktree-visor/
Tags: cli, custom, osx, terminal, tool | Comments (0)
March 9, 2008 by jerome
to keep my nerves in functioning order; I have to make sure that the Option click to position cursor tick box is checked it’s incredibly useful when the command line starts to be a bit long

Tags: cli, osx, terminal | Comments (0)