Re: Bug in sam - saving to userprefs ...
"Marc G. Fournier" <[email protected]> Wed, 1 Jun 2005 17:05:41 -0300 (ADT)
| Newsgroups | gmane.comp.horde.sam |
|---|---|
| Message-ID | <[email protected]> |
That did it, thanks ... On Wed, 1 Jun 2005, Edwin L. Culp wrote: > Quoting "Marc G. Fournier" <[email protected]>: > >> On Tue, 31 May 2005, Chuck Hagenbuch wrote: >> >>> Quoting "Marc G. Fournier" <[email protected]>: >>> >>>> Horde on our servers is setup so that username is junk@domain, not just >>>> junk, and everything else in horde is saving things right ... ie: >>> >>> Use the username hook. >> >> Made no difference that I can tell: >> >> // if (!function_exists('_sam_hook_username')) { >> function _sam_hook_username($horde_uid) >> { >> // if (strstr($horde_uid, '@')) { >> // $parts = explode('@', $horde_uid); >> // return $parts[0]; >> // } else { >> return $horde_uid; >> // } >> } >> // } > Marc, I had the same problem and changed the sam_hook to if > (!function_exists('_sam_hook_username')) { > function _sam_hook_username($horde_uid) > { > return Auth::getAuth(); > } > } > > And it wrote: > (6,'[email protected]','required_hits','4.5') > > Rather than: > > (1,'eculp','required_hits','5.0') > > YMMV, maybe I was lucky for once ;) > > ed >> >> With conf.php set to: >> >> <?php >> /* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */ >> // $Horde: sam/config/conf.xml,v 1.7 2003/08/28 20:02:45 max Exp $ >> $conf['menu']['apps'] = array(); >> $conf['enable']['rules'] = true; >> $conf['hooks']['username'] = true; >> /* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */ >> >> Saves as: >> >> 34 | scrappy | required_hits | 5 >> 35 | scrappy | subject_tag | [Spam _HITS_ of _REQD_] >> 36 | scrappy | rewrite_subject | 1 >> 37 | scrappy | report_safe | 0 >> 38 | scrappy | skip_rbl_checks | 0 >> >> Neither way is it using the same username that the rest of the Horde apps >> are saving with: >> >> # select owner_id from turba_objects where owner_id ~* 'scrappy'; >> ----------------- >> [email protected] >> [email protected] >> [email protected] >> [email protected] >> [email protected] >> (5 rows) >> >> >> >>> >>> -chuck >>> >>> -- >>> "But she goes not abroad in search of monsters to destroy." - John >>> Quincy Adams >>> -- >>> sam mailing list - Join the hunt: http://horde.org/bounties/#sam >>> Frequently Asked Questions: http://horde.org/faq/ >>> To unsubscribe, mail: [email protected] >>> >>> >> >> ---- >> Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) >> Email: [email protected] Yahoo!: yscrappy ICQ: 7615664 >> -- >> sam mailing list - Join the hunt: http://horde.org/bounties/#sam >> Frequently Asked Questions: http://horde.org/faq/ >> To unsubscribe, mail: [email protected] >> > > > > -- > sam mailing list - Join the hunt: http://horde.org/bounties/#sam > Frequently Asked Questions: http://horde.org/faq/ > To unsubscribe, mail: [email protected] > > ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: [email protected] Yahoo!: yscrappy ICQ: 7615664 -- sam mailing list - Join the hunt: http://horde.org/bounties/#sam Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]