Mail Plugin for Ruby-Wmii #
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' plugin_config["mail:imap"]["use_ssl"] = true
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.
Yeah, hey, SSL support added by yard, sorry I overlooked.
yard
Great script why, thanks! For the security conscious :
The patch above lets you use imap over ssl if you want (and I strongly encourage you to do so).
I hope it works without ssl too, as I can’t test it with my current setup, but it should.
SergeantCircles
Neat! Keen! EffWhyEye: IMAP ’s logging statement is incorrectly labled ‘pop’.
Hornsby