From: Michael Parker [mailto:[EMAIL PROTECTED]
> 
> Giampaolo Tomassoni wrote:
> > No answer to this?
> > 
> > Is this the wrong list to ask code details?
> 
> I thought I saw an answer to this already....maybe I was mistaken.

Mmmh, no. I guess yours is the first one.


> > 
> > Thanks,
> > 
> > giampaolo
> > 
> > From: Giampaolo Tomassoni [mailto:[EMAIL PROTECTED]
> >> What is $self->_userid in seen_put() and the like?
> 
> _userid is a private variable, generally anything that starts with an
> underscore is a private variable.
> 
> >>
> >> The uid of the process running SpamAssassing (i.e.: amavis) or 
> >> the message destinating user?
> >>
> >> If the first, how can I get the message destinating user from 
> >> subclasses of BayesStore/SQL.pm? I mean, in many SQL.pm functions 
> >> it seems to me that the context about the message under process 
> >> is not available. I would need to get the destinating mailbox 
> >> (thereby the destinating user). Is there any way to obtain this?
> >>
> 
> The internal userid value for BayesStore/SQL implementations is either
> a) the username that spamassassin is currently running as or b) the
> value of the bayes_sql_override_username if set.
> 
> The username value is set either at SpamAssassin object creation time or
> if you are running spamd/spamc whatever is passed via -u in spamc.

Ok. Thank you very much for your reply.

May I try to go a bit further?

I'm running amavisd-new, which fetches per-destinator config from a db. Is 
there anything I could use to identify the per-destinator id (username or uid) 
on a Mail::SpamAssassin::BayesStore::SQL.pm class and successors? I mean, it is 
safe to assume $self->_userid is set to the destinating user with a semantic 
close to the parameter of Mail::SpamAssassin::Conf::SQL->load($username), or 
its semantic is completely different?

Context: I would like to attempt an implementation of a "Multi-user Bayes" (my 
own post id <[EMAIL PROTECTED]> on Nov, 23 2006):
> 
> Dears,
> 
> actually, I see the Bayes database in SA can be either per-user or 
> system-wide.
> 
> I would like to have a way to puts bayes tokens on a per-user basis,
> and fetch them on a more system-wide (or pheraps domain-wide) way.
> 
> My intention is to have each user's bayes to contribute to scoring every
> other user's incoming mail, while still let each user's db be prominent in
> scoring mails delivered to the user's mailbox.
> 
> Is there anything like this? If there is not, do you think it would be
> something usefulf?
> 
> Thanks,

I'll ask the next question about this to the dev list, I swear! :)

Giampaolo

> 
> Michael
> 
> >> Thanks,
> >>
> >> -----------------------------------
> >> Giampaolo Tomassoni - IT Consultant
> >> Piazza VIII Aprile 1948, 4
> >> I-53044 Chiusi (SI) - Italy
> >> Ph: +39-0578-21100
> >>
> >> MAI inviare una e-mail a:
> >> NEVER send an e-mail to:
> >>  [EMAIL PROTECTED]
> >>
> > 
> 

Reply via email to