Re: Address Book Search Function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ted,

I'm not aware of any config variable you are looking for.
However you may try this:
--- squirrelmail-1.4.23_SVN20130612-orig/functions/abook_database.php  
2012-01-02 01:18:17.000000000 +0100
+++ /var/www/localhost/htdocs/squirrelmail/functions/abook_database.php
2013-06-17 00:28:18.506202292 +0200
@@ -250,9 +250,10 @@
                          "(LOWER(firstname) LIKE '%s' %s " .
                          "OR LOWER(lastname) LIKE '%s' %s " .
                          "OR LOWER(email) LIKE '%s' %s " .
+                         "OR LOWER(label) LIKE '%s' %s " .
                          "OR LOWER(nickname) LIKE '%s' %s)",
                          $this->table, $this->owner, $expr, $escape,
$expr, $escape,
-                                                     $expr, $escape,
$expr, $escape);
+                                     $expr, $escape, $expr, $escape,
$expr, $escape);
         $res = $this->dbh->query($query);

         if (DB::isError($res)) {

This simple patch will make the search work on the comment field as well.

Regards:
Dw.
-- 
dr Tóth Attila, Radiológus, 06-20-825-8057
Attila Toth MD, Radiologist, +36-20-825-8057

2013.Augusztus 6.(K) 01:30 időpontban Ted Hatfield ezt írta:
>
> I've recently upgraded to squirrelmail "Version 1.4.23 - SVN" so that I
> could gain php 5.4 compatibility.
>
> After some initial issues that I have been able to resolve I have come to
> an impasse.
>
> It appears that at sometime between 1.4.22 and 1.4.23 the address book
> search functionality has changed and I have a user that would like to
> enable the previous functionality.
>
> In version 1.4.22 you could do an address book search and it would return
> results in the "label" or "info" fields.  The newer version doesn't appear
> to search this field.
>
> My question is thus.  Is there a config variable that controls what
> address book fields are searched, and if there is not where in the code
> should I look to see if I can make my own change?
>
>
> Thanks,
>
> Ted Hatfield
> PrismNet Ltd.
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> -----
> squirrelmail-users mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>



------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users





[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux