This commit has been accessed 552 times via Git panel.
commit f418b478a19f9b2b881ab11f3189f7d281e9d377
tree 6d15918c51333e4ab24cd9e519f284711aa24dae
parent 64481283e15034ea703963dc64ae98434129eee7
author Engels Antonio <engels@majcms.org> 1335241557 +0800
committer Engels Antonio <engels@majcms.org> 1335241557 +0800
Auto-recheck stream for new mail
diff --git a/index.php b/index.php
index c7286f8..c5f3496 100644
--- a/index.php
+++ b/index.php
@@ -1281,6 +1281,9 @@ if (isset($_SESSION['logged_uid'])) {
}
}
else {
+ // imap_ping() should be doing this, but it's not working:
+ $mbox = @imap_open("{$host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
+
include("inbox.php");
//echo "<script type=\"text/javascript\" src=\"jquery-1.3.2.min.js\"></script>";
@@ -1293,6 +1296,10 @@ if (isset($_SESSION['logged_uid'])) {
echo "<td width=\"10\"></td>";
echo "<td valign=\"top\" width=\"100\">";
+
+ // imap_ping() should be doing this, but it's not working:
+ $mbox = @imap_open("{$host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
+
include("folders.php");
echo "</td>";
tree 6d15918c51333e4ab24cd9e519f284711aa24dae
parent 64481283e15034ea703963dc64ae98434129eee7
author Engels Antonio <engels@majcms.org> 1335241557 +0800
committer Engels Antonio <engels@majcms.org> 1335241557 +0800
Auto-recheck stream for new mail
diff --git a/index.php b/index.php
index c7286f8..c5f3496 100644
--- a/index.php
+++ b/index.php
@@ -1281,6 +1281,9 @@ if (isset($_SESSION['logged_uid'])) {
}
}
else {
+ // imap_ping() should be doing this, but it's not working:
+ $mbox = @imap_open("{$host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
+
include("inbox.php");
//echo "<script type=\"text/javascript\" src=\"jquery-1.3.2.min.js\"></script>";
@@ -1293,6 +1296,10 @@ if (isset($_SESSION['logged_uid'])) {
echo "<td width=\"10\"></td>";
echo "<td valign=\"top\" width=\"100\">";
+
+ // imap_ping() should be doing this, but it's not working:
+ $mbox = @imap_open("{$host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
+
include("folders.php");
echo "</td>";