[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    [SM-PLUGINS] autocomplete patch when using abook for groups
From:       Carlos Hanson <carlos.hanson () gmail ! com>
Date:       2005-06-22 18:15:16
Message-ID: e23cbd4005062211151b50a874 () mail ! gmail ! com
[Download RAW message or body]

We use the standard address book for group emails.  When using
autocomplete it gives the following:

  Nickname <email@one, email@two, email@three>

I modified funtions.php by changing

  trim($val['email'])

to

  implode('>,<', explode(', ', trim($val['email'])))

the result is the following:

   Nickname <email@one>,<email@two>,<email@three>

Our system:

  autocomplete.2.0-1.0.0
  squirrelmail 1.4.4
  PHP 4.3.10


--=20
Carlos Hanson

["diff.functions.php" (application/x-php)]

--- functions.php	2003-02-27 16:44:48.000000000 -0800
+++ functions.php.new	2005-06-22 10:39:16.154002968 -0700
@@ -42,14 +42,14 @@
    // Nicknames
    if ($autocomplete_enabled == 'Both' || $autocomplete_enabled == 'Alias') {
       foreach ($alist as $val) {
-         $addrs[] = addcslashes($val['nickname'].' <'.trim($val['email']).'>', '"');
+         $addrs[] = addcslashes($val['nickname'].' <'.implode('>,<', explode(', ', \
trim($val['email']))).'>', '"');  }
    }
 
    // Emails
    if ($autocomplete_enabled == 'Both' || $autocomplete_enabled == 'Email') {
       foreach ($alist as $val) {
-         $addrs[] = addcslashes($val['name'].' <'.trim($val['email']).'>', '"');
+         $addrs[] = addcslashes($val['name'].' <'.implode('>,<', explode(', ', \
trim($val['email']))).'>', '"');  }
    }
 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
--
squirrelmail-plugins mailing list
Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: squirrelmail-plugins@lists.sourceforge.net
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic