
IMAP Plugin
Source (link to git-repo or to original if based on someone elses unmodified work):
Simply place the script in anyone of your themes directories, open it up with your favourite text editor, edit a few variables (your imap server address, login and password) and point your karamba theme to the script.
Please note that folder names differ from system to system. My folder names begin with INBOX.* and may be different for you. Thunderbird users might notice that IMAP is unavailable when viewing mail. I'm not sure how to address this. If someone figures it out, reply to this thread. Thanks
Requirements:
-- An IMAP server
-- Mail::IMAPClient API
Note:
Gentoo users => emerge Mail-IMAPClient
- or -
Download Mail::IMAPClient from http://search.cpan.org/dist/Mail-IMAPClient/ and install manually.
This is merely an improvement on this script:
http://www.kde-look.org/content/show.php?content=19787
v1.1 :: Anchored the $folder variable down by adding a ^ in front of $folder and a $ behind it.
v1.031 :: My apologies for my typo. I forgot to place forward slashes before and after the $folder
v1.03 :: Replaced for loop comaring $folder to @excludes with grep.
v1.02 :: Added port support for IMAP servers not running standard port 143.
v1.01 :: Changed loop to parse through excluded folder array. Previous loop was reading all folders twice thus not returning accurate new mail count.
v1.0 :: Initial release.
Ratings & Comments
3 Comments
Ok. For starters, the current IMAP Plugin does not support SSL, which I didn't quite realize until recently. As I write this, I'm updating the plugin to include SSL support however, there seems to be a bug with either the Mail-IMAPClient or IO-Socket-SSL perl modules. While i've gotten it to authenticate, it returns 0 for everything.... Not quite sure what's up... Any ideas? Give me a hollar at amoeba.x@gmail.com as I don't check this board on a regular basis....
This is one of the things we really needed! I just have one question. How do we set the $imaphost variable if the mail server runs on a non-standard port? For ex: my imap mail server runs at port 993. mail.mailserver.com:993 didn't work.
Just added support for non-standard ports. Enjoy!