[sam] Bug in sam - saving to userprefs ...

Marc G. Fournier scrappy at hub.org
Wed Jun 1 12:28:41 PDT 2005


On Tue, 31 May 2005, Chuck Hagenbuch wrote:

> Quoting "Marc G. Fournier" <scrappy at hub.org>:
>
>> Horde on our servers is setup so that username is junk at 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;
//         }
      }
// }

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';
     owner_id
-----------------
  scrappy at hub.org
  scrappy at hub.org
  scrappy at hub.org
  scrappy at hub.org
  scrappy at hub.org
(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: sam-unsubscribe at lists.horde.org
>
>

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy at hub.org           Yahoo!: yscrappy              ICQ: 7615664


More information about the sam mailing list