You are right this is getting off topic i meant to send the last message to the squirrel mail list but accidently sent it to BINC instead sorry everyone i will keep this on the right list from now on.

I did a rm -R on the squirrel mail directory to remove the 1.5 version then did a make clean on the squirrel mail port then a make && make install so hopefully i ended up with a clean install. However it did not ask any questions i seem to remeber haveing to sort through a list of options last time i ninstalled squirrel mail. Anyway i tried your patch and got this

v22.computerking.ca > /usr/local/www/squirrelmail/functions #patch < /home/rmvg/uidpatch
Hmm... Looks like a context diff to me...
The text leading up to this was:
--------------------------
|*** imap_search.php Tue Feb 24 16:57:26 2004
|--- imap_search_patched.php Wed Jul 14 00:08:30 2004
--------------------------
Patching file imap_search.php using Plan A...
Hunk #1 failed at 80.
1 out of 1 hunks failed--saving rejects to imap_search.php.rej
done



here is the output of the imap_search.php.rej

***************
*** 80,86
         && strtolower($result) == 'no') {^M
         $ss = "SEARCH CHARSET \"US-ASCII\" ALL $search_string";^M
         $readin = sqimap_run_command ($imapConnection, $ss, true, ^M
!                                       $result, $message);^M
     }^M
 ^M
     unset($messagelist);^M
--- 80,86 -----
         && strtolower($result) == 'no') {^M
         $ss = "SEARCH CHARSET \"US-ASCII\" ALL $search_string";^M
         $readin = sqimap_run_command ($imapConnection, $ss, true, ^M
!                                       $result, $message, $uid_support);^M
     }^M
 ^M
     unset($messagelist);^M


Anders la Cour Bentzon wrote:

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




Reply via email to