baudehlo/Haraka — pull request #437 by msimerson (2014-01-28 04:26:37+00:00)
Title: note: inital commit

My forthcoming *watch* plugin required me inspect a lot of plugin notes. It also required sprinkling quite a few more notes in plugins that didn't store any.

As I worked through that process, I wrote parsing logic to extract results from each and every plugin. While every plugin uses notes in their own way, there were patterns that emerged. So I cataloged the types of data that each plugin notes and if/how it was used. And then I wrote note.js. Then I backported note.js to each of the plugins I had added notes to. And then I ported it plugins that had existing notes. And I smiled as the size of watch.js shrunk dramatically.

Rather than springing one gargantuan impossible to review pull request, I'm busting it up into a series of much easier to review and apply commits. After this pull request, I'll assemble another with all the plugins that got new notes. Then another with plugins that had notes but now they're being done differently. And finally, *watch* itself.