This commit has been accessed 1,029 times via Git panel.
commit 54e3e817c74a67b0e40c501a4c6a3219c44c5f44
tree 1954b257ee9d31766ba528af0a9d25340b7f56d5
parent b253d1d16e4ed28edc7d667ed0bbdbb3687aa3ea
author Engels Antonio <engels@kartero.org> 1386937782 +0800
committer Engels Antonio <engels@kartero.org> 1386937782 +0800
Fix sieve filter limit (254 custom + 1 auto-reply)
diff --git a/index.php b/index.php
index 3a800f5..2373721 100644
--- a/index.php
+++ b/index.php
@@ -1545,7 +1545,13 @@ echo "</tr>";
echo "<div id=\"filters\" style=\"display: none;\">";
}
- if (count($sivR) < 255) {
+ $sivR = glob("$sivP/*.sieve",GLOB_NOSORT);
+
+ if (in_array("$sivP/0.sieve",$sivR)) {
+ array_splice($sivR,array_search("$sivP/0.sieve",$sivR),1);
+ }
+
+ if (count($sivR) < 254) {
echo "<div class=\"spacer\"></div>";
echo "<div class=\"message\" style=\"padding: 0;\">";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">";
tree 1954b257ee9d31766ba528af0a9d25340b7f56d5
parent b253d1d16e4ed28edc7d667ed0bbdbb3687aa3ea
author Engels Antonio <engels@kartero.org> 1386937782 +0800
committer Engels Antonio <engels@kartero.org> 1386937782 +0800
Fix sieve filter limit (254 custom + 1 auto-reply)
diff --git a/index.php b/index.php
index 3a800f5..2373721 100644
--- a/index.php
+++ b/index.php
@@ -1545,7 +1545,13 @@ echo "</tr>";
echo "<div id=\"filters\" style=\"display: none;\">";
}
- if (count($sivR) < 255) {
+ $sivR = glob("$sivP/*.sieve",GLOB_NOSORT);
+
+ if (in_array("$sivP/0.sieve",$sivR)) {
+ array_splice($sivR,array_search("$sivP/0.sieve",$sivR),1);
+ }
+
+ if (count($sivR) < 254) {
echo "<div class=\"spacer\"></div>";
echo "<div class=\"message\" style=\"padding: 0;\">";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">";