User Tools

Site Tools


maildir-notification

Description

Lightweight bash script that notify new e-mail from multiple maildir (only e-mail in MAILDIR format) on desktop GUI with notify, on shell, on remote with jabber instant messaging or show on conky system monitor ( http://conky.sourceforge.net/ )

Install

Need to install python-xmpp, and perl

git clone git@github.com:varogami/maildir-notification.git

  • copy whole maildir-notification directory on your favorite place
  • open maildir-notification file and set your maildirs paths on MAILDIRS array
  • set BASEDIR path with your “favorite place”
  • launch “maildir-notification reset
  • put username and password and user to destination of jabber notification in “script/xmpp-notify.py” file (you need two accounts).
  • If you want change other config (LIMIT_SUB, TIME etc, etc)

How to use

maildir-notification loop               notify every TIME with libnotify
maildir-notification loop std           notify on standard output
maildir-notification loop xmpp          notify to your jabber account

maildir-notification summary   		show a summary of new mail with	libnotify
maildir-notification summary std	show a summary on standard outpunt
maildir-notification summary-conky      print a summary readable by conky (you must to put "text_buffer_size 512" in cokyrc)

maildir-notification reset		clean files and	all recorded notification

maildir-notification count		return total number of new mail	(to use with some windows manager like awesome)

You can change color of text in summary editing whitin SHORTSUBJECTPANGO var

Screenshot

The test are made with awesome windows manager library for notify protocol, on other Desktop Environment the look can change very much (summary is showed very bad on gnome).

Notification with libnotify

Summary with libnotify

Download

maildir-notification.txt · Last modified: 2017/03/21 17:15 by varogami