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.


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.


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 IMAP_Check_fetch.php file)
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 all of the files in the wp-content/plugins/IMAP_Check sub-directory relative to your wordpress installation. Let me know if there are any issues!