This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: Mail Plugin for Ruby-Wmii
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Using Mauricio’s ruby-wmii? I had a IMAP/POP3 checker in my last wmiirc and I decided to make it a plugin, to get familiar with Mauricio’s work. Put this in your ~/.wmii-3/plugins: mail-wmii-3.rb.
Add a few lines to your wmiirc-config.rb also:
from "mail" do
use_bar_applet "imap", 440
end
plugin_config["mail:imap"]["host"] = 'imap.yourhost.com'
plugin_config["mail:imap"]["boxes"] = ['INBOX', 'INBOX.IN.%']
plugin_config["mail:imap"]["summarize_at"] = 3
plugin_config["mail:imap"]["user"] = 'mail-user'
plugin_config["mail:imap"]["pass"] = 'mail-password'
One important line is the "boxes" setting. Use the percent sign as a wildcard for checking all boxes under a directory. Everything before the percent will be stripped when the box is displayed on the menu.