Wed 22 Feb 2006
This wordpress 2.0.x plugin checks the status of an IMAP or POP3 mailbox for a logged in user.
After activating the plugin version 0.1 one simply inserts the following, for example in your sidebar.php file in the appropriate place:
<?php {
if (class_exists('IMAP_Check')) {
if (IMAP_Check::enabled()) {
echo "<li>" . IMAP_Check::show_mail() . "</li>";
}
}
}
?>
Each user has the option of setting their server settings under the submenu Profile->Imap Check in the administration panel. The user can set the username, password, the server, and optionally a url to their web-based email. The user can also choose to disable (default setting) their mail check. This plugin makes use of IMAP functions for PHP and thus they may use any server settings as allowed by this package:
These functions are not limited to the IMAP protocol, despite their name. The underlying c-client library also supports NNTP, POP3 and local mailbox access methods.
Check out specifically imap-open to see what are the specific server settings one can use.
Wed 6 Mar 2006
I have updated to Version 0.2. The new features are the use of XMLhttprequest’s to do dynamic updating of the user’s mail status. This will also allow the page to load faster intially as it will not have to wait until the request to the mail server finishes. The following files are neccessary:
Rename the first two files so that they have a .php extenstion and place them in the sub-directory IMAP_Check of your plugins directory. The third file needs to be placed in the the root direcory of your wordpress installation. The fourth file you can edit to affect the display.
Aug 14 Mar 2006
I have updated to Version 0.3. When you scroll over message indicator, a CSS
popup will show you the subject and sender of new messages. (CSS style popups don’t work so well/at all with explorer). There is also a “friendly reminder” to clean out your inbox if you have more than 35 messages (You can change this limit by looking for the number 35 in the
The following files are neccessary (the links are to view the source):
They are packaged together in IMAP_Check.zip. With this version, you place




May 2nd, 2006 at 10:04 pm
I’m having a bit of difficulty getting this to work. I’ve just upgraded to WP 2 - so If I read you correctly:
I should create a directory in plugins called
“IMAP_check”
and in that directory I should have:
“IMAP_Check.php”
IMAP_Check.js.php” (?)
and in the plugins directory there should be:
IMAP_Check_fetch.php
correct?
May 3rd, 2006 at 12:33 am
devils advocate:
The directory should be ‘IMAP_Check’ (the ‘C’ is capatilised). The IMAP_Check.js should not have the .php ending. It is a javascript file that does dynamic html. The IMAP_Check_fetch.php needs to be placed in the main directory of wordpress… i.e. the one that contains everything, such as wp-content, wp-includes, etc.
Oh! There is a new version I just need to post when I get some time to collect everything together.
August 13th, 2006 at 7:11 pm
I’m also having trouble getting this to work.
I’ve placed IMAP_Check_fetch.php in the main directory of wordpress, and the 3 others(IMAP_Check.php IMAP_Check.js IMAP_Check.css) in wp-content/plugins/IMAP_Check (relative to the main wordpress directory).
The plugin is enabled and is displayed in users profile.
Should I edit sidebar.php as commented, or is that only for v. 0.1?
If i do with v.0.2 installed, my blog will load itself in the sidebar (only once though not indefinite).
August 14th, 2006 at 8:31 am
Hans:
Can you give me a bit more information as to what your problem is? It might be a server issue. One thing is that you need to specify your server as described here. Also, do you have ‘Enable IMAP Mail Check’ checked in your checkbox? To answer your question, you do need to add the above code to your sidebar.php (or wherever you want it).
September 7th, 2006 at 6:17 pm
Hi! I’ve tried to use your plug-in, but I always get a javascript error “Objekt erwartet”; means the bit of javascript being inserted within the sidebar is wrong for my page.
September 29th, 2006 at 10:22 am
Peter:
Sorry for the late response… I have been out of town for a few weeks. Can you give me some more information about the error:
What is your OS (windows,linux,mac,etc)?
Which browser are you using?
Does it happen with all browsers?
What is your website?
Hopefully we can get this resolved.
-frederick