<?xml version="1.0"?>
<doc>
	<title>ion3 scripts</title>
	<body>
		<h2>statusd_maildir.lua</h2>
		<p>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.</p>
		<p>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.</p>
		<p>Example snippets of cfg_statusbar.lua
		<pre>
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},
	},
	...
}
</pre></p>
		<p>So, the script is <a href="ion3/statusd_maildir.lua">statusd_maildir.lua</a>, I hope you find it useful. I know that it's working out well for me...</p>
	</body>
</doc>
