Created: 2012-03-26 04:12
Updated: 2013-10-07 08:06

Author: Ian Gable


A python script that will watch an imap server, get the number of unread messages and push that information to Librato Metrics. In order to use this script you need a Librato account and API key.


$ librato-imap --help
$ librato-imap --username joe --imap-server --librato-user "" --api-key 1234561234sdf5345


The install requires the python librato package from PyPI. You can install this with pip. If you don't have pip install that first.

Basic steps:

$ pip install librato
$ git clone git://
$ cd librato-scripts
$ python install

Hopefully this will get better.


This program is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version, or

b) the Apache v2 License.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more