sj26/mailcatcher — pull request #39 by joshmcarthur (2012-03-12 10:48:17+00:00)
Title: Add ability to search messages

Hi there!

First of all, thanks so much for creating this gem - it's been really handy for testing a bunch of the mass-mailing stuff I have to do on occasion.

Something I've felt the need for is the ability to search through messages - when I'm testing a rake task or something similar, I tend to generate a lot of emails in Mailcatcher, and adding a simple search has helped me out to filter messages I don't need to see - I'm hoping others share my pain here.

This bunch of commits adds a search input to the navigation area at the top of the page, and a couple of jQuery function to filter the table rows shown (and clear the search when it should). I've used the `keyup` event rather than the `search` event so that it works in browsers other than Safari and Chrome.

I also found I had to tweak the `Guardfile` config a little, as my generated CSS was being created with lots of line comments pointing to the file and line number that particular style block had come from. I've added config to turn this setting off - normally it is off by default when run in 'production' anyway, according to the [Compass configuration reference](http://compass-style.org/help/tutorials/configuration-reference/)

Once again, thanks for making this gem, and let me know if you have any questions. :-)