This commit has been accessed 622 times via Git panel.
commit 459aa7c70897784f268c4f779b07a2db3247c79a
tree 81314a5622175884c89eb41ff14baf38ce27bd5e
parent 2e38960821040bc8cc5c9d9806d062575c1338a2
author Engels Antonio <engels@majcms.org> 1347920708 +0800
committer Engels Antonio <engels@majcms.org> 1347920708 +0800
Test SORTARRIVAL to SORTDATE
diff --git a/inbox.php b/inbox.php
index 33d2aa3..0261eb6 100644
--- a/inbox.php
+++ b/inbox.php
@@ -53,7 +53,8 @@ if (isset($_POST['imap_search_query']) and !empty($_POST['imap_search_query']) a
}
}
else {
- $mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ //$mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ $mbox_sort = imap_sort($mbox,SORTDATE,1,SE_UID|SE_NOPREFETCH);
}
/*
diff --git a/read.php b/read.php
index 1076511..a30a630 100644
--- a/read.php
+++ b/read.php
@@ -83,7 +83,8 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
}
}
else {
- $mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ //$mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ $mbox_sort = imap_sort($mbox,SORTDATE,1,SE_UID|SE_NOPREFETCH);
}
$mbox_row = array_search($msgno, $mbox_sort);
tree 81314a5622175884c89eb41ff14baf38ce27bd5e
parent 2e38960821040bc8cc5c9d9806d062575c1338a2
author Engels Antonio <engels@majcms.org> 1347920708 +0800
committer Engels Antonio <engels@majcms.org> 1347920708 +0800
Test SORTARRIVAL to SORTDATE
diff --git a/inbox.php b/inbox.php
index 33d2aa3..0261eb6 100644
--- a/inbox.php
+++ b/inbox.php
@@ -53,7 +53,8 @@ if (isset($_POST['imap_search_query']) and !empty($_POST['imap_search_query']) a
}
}
else {
- $mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ //$mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ $mbox_sort = imap_sort($mbox,SORTDATE,1,SE_UID|SE_NOPREFETCH);
}
/*
diff --git a/read.php b/read.php
index 1076511..a30a630 100644
--- a/read.php
+++ b/read.php
@@ -83,7 +83,8 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
}
}
else {
- $mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ //$mbox_sort = imap_sort($mbox,SORTARRIVAL,1,SE_UID|SE_NOPREFETCH);
+ $mbox_sort = imap_sort($mbox,SORTDATE,1,SE_UID|SE_NOPREFETCH);
}
$mbox_row = array_search($msgno, $mbox_sort);