[sam] unable to retrive preferences from sql
Alex
clw54248kimo@yahoo.com.tw
Tue, 24 Sep 2002 15:44:31 +0800 (CST)
I try to use hooks function but ....
sam/config/conf.php
$conf['hooks']['username'] = true;
horde/config/hooks.php looks like
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;
}
}
}
But username value still not change.
--- 張良文 <clw54248kimo@yahoo.com.tw> 的訊息:> Hi all:
> I have installed SAM with MYSQL as storage,when i
> start spamd daemon with debug
> mode(spamd -C /etc/mail/spamassassin -D -q -x -a -u
> spamd),and i saw messages
> shown at console .......
>
> logmsg: connection from webmail [ 127.0.0.1 ] at port
> 36388
> debug: retrieving prefs for txg16 from SQL server
>
> And here are the entries store in mysql :
> prefid horde_id username preference value
> 1 txg16@thbuo.gov.tw txg16@thbuo.gov.tw
> required_hits 3
> 2 txg16@thbuo.gov.tw txg16@thbuo.gov.tw
> subject_tag ISSPAM
> 3 txg16@thbuo.gov.tw txg16@thbuo.gov.tw
> rewrite_subject 1
> 4 txg16@thbuo.gov.tw txg16@thbuo.gov.tw
> spam_level_stars 0
> 5 txg16@thbuo.gov.tw txg16@thbuo.gov.tw
> report_header 0
> 6 txg16@thbuo.gov.tw txg16@thbuo.gov.tw
> use_terse_report 0
> 7 txg16@thbuo.gov.tw txg16@thbuo.gov.tw
> defang_mime 0
>
> I think ,that because username:txg16@thbuo.gov.tw was
> different from "txg16" so
> spamassassin could not get the correctly preference.So
> i modified username
> from txg16@thbuo.gov.tw to txg16 ,and that's work !!
>
> Is that SAM's bug or something i missed while config
> spamassassin ?
>
> Thanks !!
> Alex
>
>
-----------------------------------------------------------------
< 每天都 Yahoo!奇摩 > www.yahoo.com.tw