> -----Original Message----- > From: Tomas Kuliavas [mailto:[EMAIL PROTECTED] > Sent: Monday, January 17, 2005 5:07 PM > To: Samir Noshy > Subject: RE: [SM-USERS] Address book lookup with squirrelmail. > > >> -----Original Message----- > >> From: Tomas Kuliavas [mailto:[EMAIL PROTECTED] > >> Sent: Monday, January 17, 2005 12:33 PM > >> To: Samir Noshy > >> Subject: RE: [SM-USERS] Address book lookup with squirrelmail. > >> > >> >> > >> >> You need modified version of database backend. > >> >> > >> >> nickname should be mapped to pw_name > >> >> owner should be mapped to pw_domain > >> >> email should be mapped to pw_name + pw_domain > >> >> name should be null > >> >> surname should be mapped to gecos > >> >> info should be null > >> >> > >> >> If you have problems with plugin, I might provide modified scripts. > >> > > >> > > >> > How can I make these modifications any why? > >> > >> global mysql address book plugin contains abook_global_database.php > >> file. > >> It contains all functions that connect to database and provide output of > >> address book entries in format required by squirrelmail. > >> > >> if you want detailed answer with all modified lines, you have to wait > >> for > >> 12 -24 hours. I can't check that code right now. > >> > >> -- > >> Tomas > > > > Thanks a lot Tomas, > > > > I patched my squirrelmail with global mysql address book. > > I can now add addresses to both local/personal and global address book. > > > > But still I want the ability to search / lookup for addresses/accounts in > > the global address book based on my logged domain. > > > > Thanks and Best Regards > > Samir Noshy. > > abook_per_domain_rw-1.4.2.diff > > patch might fail to apply to read only install, but it modifies > functions/addressbook.php only in three places and changes can be > understood from diff. > > a) add $domain global. > > b) use ereg to extract domain from username. If user name does not have > domain - use default domain. > > c) use domain name as owner field.
Thanks Tomas, Now there is an abook per each domain, that's very good. But I asked for was a little bit different , consider the following scenario : * I logged in as [EMAIL PROTECTED] * I can go to the addresses and make a lookup or search for users based on any criteria like fistname, email address or anything else. * the search process contact my mysql DB. And lookup in it for my search criteria AND my logged in domain " domain1.com". *the search result may return something like that : [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Is there any patch or plugin can do this ? Thanks and Best Regards Samir Noshy. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
