On 2004-07-13 23:31, RYAN vAN GINNEKEN wrote:
I do not know much about coding infact it would be closer to the truth to say i know next to nothing about coding. With that said i made the changes to the file like you suggested and still get errors. So i tried upgrading to squirrel mail 1.5 hopeing for a magical fix but that did not work either so i am going to switch back to the stable version. hopefully with some much appreciated help i can solve this here on the list. I should not need to recompile after the changes you suggest as it is just a php file right??
Hi!
Right.
Try this patch. It should work for SquirrelMail 1.4.3a (by the way, isn't this getting a little bit off topic? :) ). Go to the functions directory and apply the patch like this:
(starting in SM root) #cd functions #patch < ~/uidpatch
It should output a message "patching file imap_search.php." This presumes you saved the patch in your home directory under the name uidpatch. Make sure to check that ownership of imap_search.php is right after applying the patch (for some reason I had to chown it back to root.www afterward). That's all you have to do.
This patch works for me under a default installation of SM 1.4.3a. If you can't get it to work, try starting from scratch with a "clean" SquirrelMail. I didn't have to change anything in the configuration file regarding character sets.
Good luck!
Anders
*** imap_search.php Tue Feb 24 16:57:26 2004
--- imap_search_patched.php Wed Jul 14 00:08:30 2004
***************
*** 80,86 ****
&& strtolower($result) == 'no') {
$ss = "SEARCH CHARSET \"US-ASCII\" ALL $search_string";
$readin = sqimap_run_command ($imapConnection, $ss, true,
! $result, $message);
}
unset($messagelist);
--- 80,86 ----
&& strtolower($result) == 'no') {
$ss = "SEARCH CHARSET \"US-ASCII\" ALL $search_string";
$readin = sqimap_run_command ($imapConnection, $ss, true,
! $result, $message, $uid_support);
}
unset($messagelist);
