statusd_maildir.lua
This is a statusd script that monitors maildir mailspools, it should be relatively easy to setup and use. Basically, drop the script in to ~/.ion3/, then add a section to cfg_statusbar.lua to configure the maildir plugin.
The plugin allows you to monitor multiple maildirs via the maildirs configuration option and lets you set the important and critical level for each maildir.
Example snippets of cfg_statusbar.lua
mod_statusbar.create{
...
template="blah blah [Inbox: %maildir_INBOX] blah blah",
...
}
...
mod_statusbar.launch_statusd{
...
maildir={
interval=10000,
maildirs={INBOX="~/Maildir/", otherbox="~/Maildir/otherbox/"},
important={otherbox=5},
critical={INBOX=5,otherbox=20},
},
...
}
So, the script is statusd_maildir.lua, I hope you find it useful. I know that it's working out well for me...